aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-02-25 03:28:51 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-02-25 03:28:51 +0000
commitbd2c623903d4b9f4f1c8192bcf48811dbd3f7bc4 (patch)
tree588631422d40e90a89dc74e099f8ebba1539bd4f
parent377fbc073c2e73ef9af8c2e1cf62562a66e9879e (diff)
downloadexternal_llvm-bd2c623903d4b9f4f1c8192bcf48811dbd3f7bc4.zip
external_llvm-bd2c623903d4b9f4f1c8192bcf48811dbd3f7bc4.tar.gz
external_llvm-bd2c623903d4b9f4f1c8192bcf48811dbd3f7bc4.tar.bz2
Added tNOP for disassembly only.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97105 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMInstrThumb.td9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td
index 73a3b7c..1154c86 100644
--- a/lib/Target/ARM/ARMInstrThumb.td
+++ b/lib/Target/ARM/ARMInstrThumb.td
@@ -135,6 +135,13 @@ PseudoInst<(outs), (ins i32imm:$amt), NoItinerary,
[(ARMcallseq_start imm:$amt)]>, Requires<[IsThumb1Only]>;
}
+def tNOP : T1pI<(outs), (ins), NoItinerary, "nop", "",
+ [/* For disassembly only; pattern left blank */]>,
+ T1Encoding<0b101111> {
+ let Inst{9-8} = 0b11;
+ let Inst{7-0} = 0b00000000;
+}
+
// The i32imm operand $val can be used by a debugger to store more information
// about the breakpoint.
def tBKPT : T1I<(outs), (ins i32imm:$val), NoItinerary, "bkpt\t$val",
@@ -347,7 +354,7 @@ let isBranch = 1, isTerminator = 1 in {
// A8.6.16 B: Encoding T1
// If Inst{11-8} == 0b1111 then SEE SVC
let isCall = 1 in {
-def tSVC : T1I<(outs), (ins i32imm:$svc, pred:$cc), IIC_Br, "svc$cc\t$svc", []>,
+def tSVC : T1pI<(outs), (ins i32imm:$svc), IIC_Br, "svc", "\t$svc", []>,
Encoding16 {
let Inst{15-12} = 0b1101;
let Inst{11-8} = 0b1111;