[llvm] r178783 - [XCore] Add bru instruction.
Richard Osborne
richard at xmos.com
Thu Apr 4 13:05:35 PDT 2013
Author: friedgold
Date: Thu Apr 4 15:05:35 2013
New Revision: 178783
URL: http://llvm.org/viewvc/llvm-project?rev=178783&view=rev
Log:
[XCore] Add bru instruction.
Modified:
llvm/trunk/lib/Target/XCore/XCoreInstrInfo.td
llvm/trunk/test/MC/Disassembler/XCore/xcore.txt
Modified: llvm/trunk/lib/Target/XCore/XCoreInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreInstrInfo.td?rev=178783&r1=178782&r2=178783&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/XCoreInstrInfo.td (original)
+++ llvm/trunk/lib/Target/XCore/XCoreInstrInfo.td Thu Apr 4 15:05:35 2013
@@ -924,6 +924,9 @@ def BR_JT32 : PseudoInstXCore<(outs), (i
"bru $i\n$t",
[(XCoreBR_JT32 tjumptable:$t, GRRegs:$i)]>;
+let isBranch=1, isIndirectBranch=1, isTerminator=1, isBarrier = 1 in
+def BRU_1r : _F1R<0b001010, (outs), (ins GRRegs:$a), "bru $a", []>;
+
let Defs=[SP], neverHasSideEffects=1 in
def SETSP_1r : _F1R<0b001011, (outs), (ins GRRegs:$a), "set sp, $a", []>;
Modified: llvm/trunk/test/MC/Disassembler/XCore/xcore.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Disassembler/XCore/xcore.txt?rev=178783&r1=178782&r2=178783&view=diff
==============================================================================
--- llvm/trunk/test/MC/Disassembler/XCore/xcore.txt (original)
+++ llvm/trunk/test/MC/Disassembler/XCore/xcore.txt Thu Apr 4 15:05:35 2013
@@ -95,6 +95,9 @@
# CHECK: bla r6
0xe6 0x27
+# CHECK: bru r8
+0xe8 0x2f
+
# CHECK: syncr res[r7]
0xf7 0x87
More information about the llvm-commits
mailing list