From: Jim Grosbach Date: Fri, 9 Sep 2011 20:01:18 +0000 (+0000) Subject: Thumb2 assembly parsing and encoding for LDRSHT. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=56806c29973a801a8311b5501c05a0a49651b42f;p=oota-llvm.git Thumb2 assembly parsing and encoding for LDRSHT. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139392 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s index dbd63f6955d..cddbb17b090 100644 --- a/test/MC/ARM/basic-thumb2-instructions.s +++ b/test/MC/ARM/basic-thumb2-instructions.s @@ -849,6 +849,20 @@ _func: @ CHECK: @ fixup A - offset: 0, value: _bar, kind: fixup_t2_ldst_pcrel_12 +@------------------------------------------------------------------------------ +@ LDRSHT +@------------------------------------------------------------------------------ + ldrsht r1, [r2] + ldrsht r1, [r8, #0] + ldrsht r1, [r8, #3] + ldrsht r1, [r8, #255] + +@ CHECK: ldrsht r1, [r2] @ encoding: [0x32,0xf9,0x00,0x1e] +@ CHECK: ldrsht r1, [r8] @ encoding: [0x38,0xf9,0x00,0x1e] +@ CHECK: ldrsht r1, [r8, #3] @ encoding: [0x38,0xf9,0x03,0x1e] +@ CHECK: ldrsht r1, [r8, #255] @ encoding: [0x38,0xf9,0xff,0x1e] + + @------------------------------------------------------------------------------ @ IT @------------------------------------------------------------------------------