aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-31 18:35:46 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-31 18:35:46 +0000
commitd82175c1f03e6a83b4dbe53f884f72a2441d5c34 (patch)
tree543dc04993463d6ebb2dd26229825be89dad9fde
parent559c277aa9242dd5b32d2f2ccc353d938f886ee9 (diff)
Thumb NOP encoding varies depending on ARCH revision.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138876 91177308-0d34-0410-b5e6-96231b3b80d8
-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 0000000000..0b580ea14a
--- /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]