diff options
author | Richard Osborne <richard@xmos.com> | 2013-02-17 22:38:05 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2013-02-17 22:38:05 +0000 |
commit | 8dc741e400213ea8183e09626f0d1f45f14e044f (patch) | |
tree | d4c0cc501adc02d7a99e52511d43369ba39e10dc /lib/Target/XCore/XCoreInstrInfo.td | |
parent | 763c858edeb76173ee4ef5ab9bf7d750db5d8c4f (diff) | |
download | llvm-8dc741e400213ea8183e09626f0d1f45f14e044f.tar.gz llvm-8dc741e400213ea8183e09626f0d1f45f14e044f.tar.bz2 llvm-8dc741e400213ea8183e09626f0d1f45f14e044f.tar.xz |
[XCore] Add missing 2r instructions.
These instructions are not targeted by the compiler but it is needed for
the MC layer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreInstrInfo.td')
-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 d366919504..e140ef26b4 100644 --- a/lib/Target/XCore/XCoreInstrInfo.td +++ b/lib/Target/XCore/XCoreInstrInfo.td @@ -700,7 +700,6 @@ def LDWCP_lu10 : _FLU10<0b111001, (outs), (ins i32imm:$a), "ldw r11, cp[$a]", } // Two operand short -// TODO eet, eef, tsetmr def NOT : _F2R<0b100010, (outs GRRegs:$dst), (ins GRRegs:$b), "not $dst, $b", [(set GRRegs:$dst, (not GRRegs:$b))]>; @@ -848,6 +847,15 @@ def ENDIN_2r : _F2R<0b100101, (outs GRRegs:$dst), (ins GRRegs:$src), "endin $dst, res[$src]", [(set GRRegs:$dst, (int_xcore_endin GRRegs:$src))]>; +def EEF_2r : _F2R<0b001011, (outs), (ins GRRegs:$a, GRRegs:$b), + "eef $a, res[$b]", []>; + +def EET_2r : _F2R<0b001001, (outs), (ins GRRegs:$a, GRRegs:$b), + "eet $a, res[$b]", []>; + +def TSETMR_2r : _F2RImm<0b000111, (outs), (ins i32imm:$a, GRRegs:$b), + "tsetmr r$a, $b", []>; + // Two operand long def BITREV_l2r : _FL2R<0b0000011000, (outs GRRegs:$dst), (ins GRRegs:$src), "bitrev $dst, $src", |