diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-08-18 17:02:28 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-08-18 17:02:28 +0000 |
commit | 6ea80e964ba0f8a3420b10bf21172508f713fafc (patch) | |
tree | 234877ec248938c3da3ff77a1b25e0a6ee5e235e | |
parent | ded439886aa0a96df55820e6f84342210660e0f4 (diff) |
ARM assembly parsing and encoding test for BX/BLX (register).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137949 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/MC/ARM/basic-thumb-instructions.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb-instructions.s b/test/MC/ARM/basic-thumb-instructions.s index 630a21a14e..eb3a2b75d3 100644 --- a/test/MC/ARM/basic-thumb-instructions.s +++ b/test/MC/ARM/basic-thumb-instructions.s @@ -118,3 +118,19 @@ _func: @ 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 + + +@------------------------------------------------------------------------------ +@ BLX (register) +@------------------------------------------------------------------------------ + blx r4 + +@ CHECK: blx r4 @ encoding: [0xa0,0x47] + + +@------------------------------------------------------------------------------ +@ BX +@------------------------------------------------------------------------------ + bx r2 + +@ CHECK: bx r2 @ encoding: [0x10,0x47] |