Provide a correct decoder hook for Thumb2 shifted registers. Found by randomized...
authorOwen Anderson <resistor@mac.com>
Mon, 22 Aug 2011 23:10:16 +0000 (23:10 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 22 Aug 2011 23:10:16 +0000 (23:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138292 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb2.td
test/MC/Disassembler/ARM/thumb-tests.txt

index ec73b35fe5910018b40723d1f9d09236060c4db5..c5f1aec9b9049f4e3e7869a8f6d480be6faebac0 100644 (file)
@@ -29,6 +29,7 @@ def t2_so_reg : Operand<i32>,    // 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
index b9490c760f0438ebd371f4ad23843073442f8656..c0e0d6ba0a2503d22ca602ecd436782c6eca462c 100644 (file)
 
 # CHECK:        ldrsh   r1, [r0, r0]
 0x01 0x5E
+
+# CHECK: and.w r5, r1, r10, ror #7
+0x1 0xea 0xfa 0x95