[llvm-commits] [llvm] r137948 - /llvm/trunk/test/MC/ARM/basic-thumb-instructions.s
Jim Grosbach
grosbach at apple.com
Thu Aug 18 10:00:09 PDT 2011
Author: grosbach
Date: Thu Aug 18 12:00:09 2011
New Revision: 137948
URL: http://llvm.org/viewvc/llvm-project?rev=137948&view=rev
Log:
ARM assembly parsing and encoding test for BL/BLX (immediate).
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=137948&r1=137947&r2=137948&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/basic-thumb-instructions.s (original)
+++ llvm/trunk/test/MC/ARM/basic-thumb-instructions.s Thu Aug 18 12:00:09 2011
@@ -106,3 +106,15 @@
@ CHECK: bkpt #0 @ encoding: [0x00,0xbe]
@ CHECK: bkpt #255 @ encoding: [0xff,0xbe]
+
+
+ at ------------------------------------------------------------------------------
+@ BL/BLX (immediate)
+ at ------------------------------------------------------------------------------
+ bl _bar
+ blx _baz
+
+@ CHECK: bl _bar @ encoding: [A,0xf0'A',A,0xf8'A']
+ @ fixup A - offset: 0, value: _bar, kind: fixup_arm_thumb_bl
+@ CHECK: blx _baz @ encoding: [A,0xf0'A',A,0xe8'A']
+ @ fixup A - offset: 0, value: _baz, kind: fixup_arm_thumb_blx
More information about the llvm-commits
mailing list