diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-08-23 18:43:06 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-08-23 18:43:06 +0000 |
commit | aec3a61c8b3fb3fbcafcc493ef38a37e39f039ab (patch) | |
tree | cb46ee9669b2cb0dac2778f142fbf279d05869f9 | |
parent | 803b1aa8ef00698de62181b9205cfcc0ce6b0ceb (diff) |
Thumb parsing and encoding for STRB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138349 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/MC/ARM/basic-thumb-instructions.s | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb-instructions.s b/test/MC/ARM/basic-thumb-instructions.s index b2e73452d2..df3d9e477c 100644 --- a/test/MC/ARM/basic-thumb-instructions.s +++ b/test/MC/ARM/basic-thumb-instructions.s @@ -465,3 +465,23 @@ _func: str r2, [r7, r3] @ CHECK: str r2, [r7, r3] @ encoding: [0xfa,0x50] + + +@------------------------------------------------------------------------------ +@ STRB (immediate) +@------------------------------------------------------------------------------ + strb r4, [r3] + strb r5, [r6, #0] + strb r6, [r7, #31] + +@ CHECK: strb r4, [r3] @ encoding: [0x1c,0x70] +@ CHECK: strb r5, [r6] @ encoding: [0x35,0x70] +@ CHECK: strb r6, [r7, #31] @ encoding: [0xfe,0x77] + + +@------------------------------------------------------------------------------ +@ STRB (register) +@------------------------------------------------------------------------------ + strb r6, [r4, r5] + +@ CHECK: strb r6, [r4, r5] @ encoding: [0x66,0x55] |