t2SMLAD is a four-register instruction, not a three-register one.
authorOwen Anderson <resistor@mac.com>
Mon, 22 Aug 2011 23:31:45 +0000 (23:31 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 22 Aug 2011 23:31:45 +0000 (23:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138301 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 783a84eab3dbd23de864f77c9eb69cc8c5ff2e23..90df7c6cd0d4ce0c1a729ea1e8fc059498596e31 100644 (file)
@@ -2457,7 +2457,7 @@ def t2SMUSDX:T2ThreeReg_mac<
           Requires<[IsThumb2, HasThumb2DSP]> {
   let Inst{15-12} = 0b1111;
 }
-def t2SMLAD   : T2ThreeReg_mac<
+def t2SMLAD   : T2FourReg_mac<
             0, 0b010, 0b0000, (outs rGPR:$Rd),
             (ins rGPR:$Rn, rGPR:$Rm, rGPR:$Ra), IIC_iMAC32, "smlad",
             "\t$Rd, $Rn, $Rm, $Ra", []>,
index 144cb492ecdd35286af68789d49c3b4b1e0fbe73..d93e75e9f3838bd9d75c050d7c805b6f712cf85d 100644 (file)
 
 # CHECK: usat16        r4, #10, r1
 0xa1 0xf3 0x2a 0x4
+
+# CHECK: smlad r5, r12, r8, r11
+0x2c 0xfb 0x8 0xb5