Thumb parsing and encoding for STRB.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2011-08-23 18:43:06 +00:00
parent 803b1aa8ef
commit aec3a61c8b

View File

@ -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]