ARM assembly parsing and encoding test for BKPT.

llvm-svn: 137898
This commit is contained in:
Jim Grosbach 2011-08-17 23:11:13 +00:00
parent 23b729eeba
commit 1b43828958
2 changed files with 20 additions and 0 deletions

View File

@ -96,3 +96,13 @@ _func:
bics r1, r6 bics r1, r6
@ CHECK: bics r1, r6 @ encoding: [0xb1,0x43] @ CHECK: bics r1, r6 @ encoding: [0xb1,0x43]
@------------------------------------------------------------------------------
@ BKPT
@------------------------------------------------------------------------------
bkpt #0
bkpt #255
@ CHECK: bkpt #0 @ encoding: [0x00,0xbe]
@ CHECK: bkpt #255 @ encoding: [0xff,0xbe]

View File

@ -29,3 +29,13 @@
@ CHECK-ERRORS: error: invalid operand for instruction @ CHECK-ERRORS: error: invalid operand for instruction
@ CHECK-ERRORS: asrs r2, r3, #0 @ CHECK-ERRORS: asrs r2, r3, #0
@ CHECK-ERRORS: ^ @ 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
^