Add fixed bits to correctly distinguish Thumb2 SSAT/SSAT16's.
authorOwen Anderson <resistor@mac.com>
Fri, 16 Sep 2011 22:17:02 +0000 (22:17 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 16 Sep 2011 22:17:02 +0000 (22:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139958 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb2.td
test/MC/Disassembler/ARM/thumb2.txt

index f767351904f6d8c92b218b5e7eed63b05af987e5..cf157c583638938c44015e9fefeebd000353180f 100644 (file)
@@ -2046,6 +2046,7 @@ def t2SSAT16: T2SatI<
   let Inst{21} = 1;        // sh = '1'
   let Inst{14-12} = 0b000; // imm3 = '000'
   let Inst{7-6} = 0b00;    // imm2 = '00'
+  let Inst{5-4} = 0b00;
 }
 
 def t2USAT: T2SatI<
index dea590e5943710d6c2740b233eb0155f12a07306..855043b4fc372bc04b2ebc6e7d23522e3c109d7d 100644 (file)
 0x62 0xfb 0x03 0x41
 0x63 0xfb 0x12 0x14
 
+#------------------------------------------------------------------------------
+# SSAT
+#------------------------------------------------------------------------------
+# CHECK: ssat r9, #30, r0, asr #32
+
+0x20 0xf3 0x1d 0x09
 
 #------------------------------------------------------------------------------
 # STRD (immediate)
 0x65 0xe8 0x00 0x85
 0x65 0xe8 0x01 0x74
 
+