diff options
author | Richard Osborne <richard@xmos.com> | 2013-01-27 22:28:30 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2013-01-27 22:28:30 +0000 |
commit | 038d24f90cc57d92172a736977a7cb5e024fe6bb (patch) | |
tree | 465786a67aa6be37e28493b04231ffd09f20fb78 /llvm/lib/Target/XCore/XCoreInstrInfo.td | |
parent | 4b9e70766bb9c51a685f3622bd4a170e485fcd01 (diff) | |
download | bcm5719-llvm-038d24f90cc57d92172a736977a7cb5e024fe6bb.tar.gz bcm5719-llvm-038d24f90cc57d92172a736977a7cb5e024fe6bb.zip |
[XCore] Add missing l2rus instructions.
These instructions are not targeted by the compiler but they are
needed for the MC layer.
llvm-svn: 173634
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreInstrInfo.td')
-rw-r--r-- | llvm/lib/Target/XCore/XCoreInstrInfo.td | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/lib/Target/XCore/XCoreInstrInfo.td b/llvm/lib/Target/XCore/XCoreInstrInfo.td index 613f9cb2787..befc096cfc1 100644 --- a/llvm/lib/Target/XCore/XCoreInstrInfo.td +++ b/llvm/lib/Target/XCore/XCoreInstrInfo.td @@ -451,7 +451,6 @@ def CRC_l3r : _FL3RSrcDst<0b101011100, (outs GRRegs:$dst), (int_xcore_crc32 GRRegs:$src1, GRRegs:$src2, GRRegs:$src3))]>; -// TODO inpw, outpw let mayStore=1 in { def ST16_l3r : _FL3R<0b100001100, (outs), (ins GRRegs:$val, GRRegs:$addr, GRRegs:$offset), @@ -462,6 +461,14 @@ def ST8_l3r : _FL3R<0b100011100, (outs), "st8 $val, $addr[$offset]", []>; } +def INPW_l2rus : _FL2RUSBitp<0b100101110, (outs GRRegs:$a), + (ins GRRegs:$b, i32imm:$c), "inpw $a, res[$b], $c", + []>; + +def OUTPW_l2rus : _FL2RUSBitp<0b100101101, (outs), + (ins GRRegs:$a, GRRegs:$b, i32imm:$c), + "outpw res[$b], $a, $c", []>; + // Four operand long let Constraints = "$e = $a,$f = $b" in { def MACCU_l4r : _FL4RSrcDstSrcDst< |