[Sparc] Add support to decode unimp instruction.
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>
Sat, 1 Mar 2014 09:28:18 +0000 (09:28 +0000)
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>
Sat, 1 Mar 2014 09:28:18 +0000 (09:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202581 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcInstrInfo.td
test/MC/Disassembler/Sparc/sparc.txt

index 0a45b371b166ff3976f4fb7175eb638b23a23e05..c990741b6b42356602640a0af4ec1814793c436d 100644 (file)
@@ -321,8 +321,8 @@ let isBarrier = 1, isTerminator = 1, rd = 0b1000, rs1 = 0, simm13 = 5 in
   def TA5 : F3_2<0b10, 0b111010, (outs), (ins), "ta 5", [(trap)]>;
 
 let rd = 0 in
-  def UNIMP : F2_1<0b000, (outs), (ins i32imm:$val),
-                  "unimp $val", []>;
+  def UNIMP : F2_1<0b000, (outs), (ins i32imm:$imm22),
+                  "unimp $imm22", []>;
 
 // SELECT_CC_* - Used to implement the SELECT_CC DAG operation.  Expanded after
 // instruction selection into a branch sequence.  This has to handle all
index 8c16c19c27483984492b243fdbdc4bb8f146fbb5..924f65ffce64853618758880c516ab67a8f4ed28 100644 (file)
 # CHECK: wr %g1, -2, %y
 0x81 0x80 0x7f 0xfe
 
+# CHECK: unimp 12
+0x00 0x00 0x00 0x0c