aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-31 19:50:28 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-31 19:50:28 +0000
commite0e42bf0bb1280a881450027aaae6490b4c87fd5 (patch)
tree22f07a7851ff9053d017e4eb3ea7fb6ff58db506
parentb80ab8e369d13673c7fec81f07d1c9718c6eec7b (diff)
Run the Thumb1 parser tests in Thumb2 mode, as well.
Thumb2 is a superset of Thumb1, so all of the encodings should still work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138883 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/MC/ARM/basic-thumb-instructions.s14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/MC/ARM/basic-thumb-instructions.s b/test/MC/ARM/basic-thumb-instructions.s
index d47b8eb0fa..cd4471e884 100644
--- a/test/MC/ARM/basic-thumb-instructions.s
+++ b/test/MC/ARM/basic-thumb-instructions.s
@@ -1,4 +1,9 @@
+@---
+@ Run these test in both Thumb1 and Thumb2 modes, as all of the encodings
+@ should be valid, and parse the same, in both.
+@---
@ RUN: llvm-mc -triple=thumbv6-apple-darwin -show-encoding < %s | FileCheck %s
+@ RUN: llvm-mc -triple=thumbv7-apple-darwin -show-encoding < %s | FileCheck %s
.syntax unified
.globl _func
@@ -384,15 +389,6 @@ _func:
@ CHECK: rsbs r3, r4, #0 @ encoding: [0x63,0x42]
-
-@------------------------------------------------------------------------------
-@ NOP
-@------------------------------------------------------------------------------
- nop
-
-@ CHECK: nop @ encoding: [0xc0,0x46]
-
-
@------------------------------------------------------------------------------
@ ORR
@------------------------------------------------------------------------------