summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenABITypes.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2013-10-30 15:20:38 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2013-10-30 15:20:38 +0000
commit33d7fbc1008ada44845fc49b1bd704778c5fe1e4 (patch)
treefc4cef48a493b38fc98314b2cbfef0f5432eb2d7 /lib/CodeGen/CodeGenABITypes.cpp
parent564020954e9eb01293d90802c89a02f87301e095 (diff)
downloadclang-33d7fbc1008ada44845fc49b1bd704778c5fe1e4.tar.gz
clang-33d7fbc1008ada44845fc49b1bd704778c5fe1e4.tar.bz2
clang-33d7fbc1008ada44845fc49b1bd704778c5fe1e4.tar.xz
[mips][msa] Added support for matching bmnz, bmnzi, bmz, and bmzi from normal IR (i.e. not intrinsics)
Also corrected the definition of the intrinsics for these instructions (the result register is also the first operand), and added intrinsics for bsel and bseli to clang (they already existed in the backend). These four operations are mostly equivalent to bsel, and bseli (the difference is which operand is tied to the result). As a result some of the tests changed as described below. bitwise.ll: - bsel.v test adapted so that the mask is unknown at compile-time. This stops it emitting bmnzi.b instead of the intended bsel.v. - The bseli.b test now tests the right thing. Namely the case when one of the values is an uimm8, rather than when the condition is a uimm8 (which is covered by bmnzi.b) compare.ll: - bsel.v tests now (correctly) emits bmnz.v instead of bsel.v because this is the same operation (see MSA.txt). i8.ll - CHECK-DAG-ized test. - bmzi.b test now (correctly) emits equivalent bmnzi.b with swapped operands because this is the same operation (see MSA.txt). - bseli.b still emits bseli.b though because the immediate makes it distinguishable from bmnzi.b. vec.ll: - CHECK-DAG-ized test. - bmz.v tests now (correctly) emits bmnz.v with swapped operands (see MSA.txt). - bsel.v tests now (correctly) emits bmnz.v with swapped operands (see MSA.txt). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenABITypes.cpp')
0 files changed, 0 insertions, 0 deletions