[llvm-commits] [llvm] r138883 - /llvm/trunk/test/MC/ARM/basic-thumb-instructions.s

Jim Grosbach grosbach at apple.com
Wed Aug 31 12:50:28 PDT 2011


Author: grosbach
Date: Wed Aug 31 14:50:28 2011
New Revision: 138883

URL: http://llvm.org/viewvc/llvm-project?rev=138883&view=rev
Log:
Run the Thumb1 parser tests in Thumb2 mode, as well.

Thumb2 is a superset of Thumb1, so all of the encodings should still work.

Modified:
    llvm/trunk/test/MC/ARM/basic-thumb-instructions.s

Modified: llvm/trunk/test/MC/ARM/basic-thumb-instructions.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/basic-thumb-instructions.s?rev=138883&r1=138882&r2=138883&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/basic-thumb-instructions.s (original)
+++ llvm/trunk/test/MC/ARM/basic-thumb-instructions.s Wed Aug 31 14:50:28 2011
@@ -1,4 +1,9 @@
+ at ---
+@ Run these test in both Thumb1 and Thumb2 modes, as all of the encodings
+@ should be valid, and parse the same, in both.
+ at ---
 @ 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 @@
 
 @ CHECK: rsbs	r3, r4, #0              @ encoding: [0x63,0x42]
 
-
- at ------------------------------------------------------------------------------
-@ NOP
- at ------------------------------------------------------------------------------
-        nop
-
-@ CHECK: nop                            @ encoding: [0xc0,0x46]
-
-
 @------------------------------------------------------------------------------
 @ ORR
 @------------------------------------------------------------------------------





More information about the llvm-commits mailing list