aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/thumb-nop.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ARM/thumb-nop.s')
-rw-r--r--test/MC/ARM/thumb-nop.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/ARM/thumb-nop.s b/test/MC/ARM/thumb-nop.s
new file mode 100644
index 0000000..0b580ea
--- /dev/null
+++ b/test/MC/ARM/thumb-nop.s
@@ -0,0 +1,9 @@
+@ RUN: llvm-mc -triple=thumbv6-apple-darwin -show-encoding < %s | FileCheck %s -check-prefix=CHECK-V6
+@ RUN: llvm-mc -triple=thumbv7-apple-darwin -show-encoding < %s | FileCheck %s -check-prefix=CHECK-V7
+
+ .syntax unified
+
+ nop
+
+@ CHECK-V6: nop @ encoding: [0xc0,0x46]
+@ CHECK-V7: nop @ encoding: [0x00,0xbf]