diff options
author | Richard Osborne <richard@xmos.com> | 2011-07-19 13:00:40 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2011-07-19 13:00:40 +0000 |
commit | 829bef1a467e1049c8dc412167c5da6f63a398e2 (patch) | |
tree | 868fea83366405efeed983adafb68d1d83121c58 /lib/Target/XCore | |
parent | dee3dd9129e1bb5283a7e7f79c3c20b8b81cf13d (diff) | |
download | external_llvm-829bef1a467e1049c8dc412167c5da6f63a398e2.zip external_llvm-829bef1a467e1049c8dc412167c5da6f63a398e2.tar.gz external_llvm-829bef1a467e1049c8dc412167c5da6f63a398e2.tar.bz2 |
Add intrinsics for the testct, testwct instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore')
-rw-r--r-- | lib/Target/XCore/XCoreInstrInfo.td | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Target/XCore/XCoreInstrInfo.td b/lib/Target/XCore/XCoreInstrInfo.td index c615d9f..db05fff 100644 --- a/lib/Target/XCore/XCoreInstrInfo.td +++ b/lib/Target/XCore/XCoreInstrInfo.td @@ -754,7 +754,7 @@ def BL_lu10 : _FLU10< } // Two operand short -// TODO eet, eef, testwct, tsetmr, sext (reg), zext (reg) +// TODO eet, eef, tsetmr, sext (reg), zext (reg) def NOT : _F2R<(outs GRRegs:$dst), (ins GRRegs:$b), "not $dst, $b", [(set GRRegs:$dst, (not GRRegs:$b))]>; @@ -846,6 +846,14 @@ def CHKCT_rus : _F2R<(outs), (ins GRRegs:$r, i32imm:$val), "chkct res[$r], $val", [(int_xcore_chkct GRRegs:$r, immUs:$val)]>; +def TESTCT_2r : _F2R<(outs GRRegs:$dst), (ins GRRegs:$src), + "testct $dst, res[$src]", + [(set GRRegs:$dst, (int_xcore_testct GRRegs:$src))]>; + +def TESTWCT_2r : _F2R<(outs GRRegs:$dst), (ins GRRegs:$src), + "testwct $dst, res[$src]", + [(set GRRegs:$dst, (int_xcore_testwct GRRegs:$src))]>; + def SETD_2r : _F2R<(outs), (ins GRRegs:$r, GRRegs:$val), "setd res[$r], $val", [(int_xcore_setd GRRegs:$r, GRRegs:$val)]>; |