[llvm-commits] [llvm] r137898 - in /llvm/trunk/test/MC/ARM: basic-thumb-instructions.s thumb-diagnostics.s

Jim Grosbach grosbach at apple.com
Wed Aug 17 16:11:13 PDT 2011


Author: grosbach
Date: Wed Aug 17 18:11:13 2011
New Revision: 137898

URL: http://llvm.org/viewvc/llvm-project?rev=137898&view=rev
Log:
ARM assembly parsing and encoding test for BKPT.

Modified:
    llvm/trunk/test/MC/ARM/basic-thumb-instructions.s
    llvm/trunk/test/MC/ARM/thumb-diagnostics.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=137898&r1=137897&r2=137898&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/basic-thumb-instructions.s (original)
+++ llvm/trunk/test/MC/ARM/basic-thumb-instructions.s Wed Aug 17 18:11:13 2011
@@ -96,3 +96,13 @@
         bics r1, r6
 
 @ CHECK: bics	r1, r6                  @ encoding: [0xb1,0x43]
+
+
+ at ------------------------------------------------------------------------------
+@ BKPT
+ at ------------------------------------------------------------------------------
+        bkpt #0
+        bkpt #255
+
+@ CHECK: bkpt	#0                      @ encoding: [0x00,0xbe]
+@ CHECK: bkpt	#255                    @ encoding: [0xff,0xbe]

Modified: llvm/trunk/test/MC/ARM/thumb-diagnostics.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/thumb-diagnostics.s?rev=137898&r1=137897&r2=137898&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/thumb-diagnostics.s (original)
+++ llvm/trunk/test/MC/ARM/thumb-diagnostics.s Wed Aug 17 18:11:13 2011
@@ -29,3 +29,13 @@
 @ CHECK-ERRORS: error: invalid operand for instruction
 @ CHECK-ERRORS:         asrs r2, r3, #0
 @ CHECK-ERRORS:                      ^
+
+@ Out of range immediates for BKPT instruction.
+        bkpt #256
+        bkpt #-1
+error: invalid operand for instruction
+        bkpt #256
+             ^
+error: invalid operand for instruction
+        bkpt #-1
+             ^





More information about the llvm-commits mailing list