From: Owen Anderson Date: Mon, 22 Aug 2011 23:10:16 +0000 (+0000) Subject: Provide a correct decoder hook for Thumb2 shifted registers. Found by randomized... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2c9f83533baa8802ab1d600fd76854125af53076;p=oota-llvm.git Provide a correct decoder hook for Thumb2 shifted registers. Found by randomized testing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138292 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td index ec73b35fe59..c5f1aec9b90 100644 --- a/lib/Target/ARM/ARMInstrThumb2.td +++ b/lib/Target/ARM/ARMInstrThumb2.td @@ -29,6 +29,7 @@ def t2_so_reg : Operand, // reg imm let EncoderMethod = "getT2SORegOpValue"; let PrintMethod = "printT2SOOperand"; let MIOperandInfo = (ops rGPR, i32imm); + let DecoderMethod = "DecodeSORegImmOperand"; } // t2_so_imm_not_XFORM - Return the complement of a t2_so_imm value diff --git a/test/MC/Disassembler/ARM/thumb-tests.txt b/test/MC/Disassembler/ARM/thumb-tests.txt index b9490c760f0..c0e0d6ba0a2 100644 --- a/test/MC/Disassembler/ARM/thumb-tests.txt +++ b/test/MC/Disassembler/ARM/thumb-tests.txt @@ -274,3 +274,6 @@ # CHECK: ldrsh r1, [r0, r0] 0x01 0x5E + +# CHECK: and.w r5, r1, r10, ror #7 +0x1 0xea 0xfa 0x95