[llvm] r202581 - [Sparc] Add support to decode unimp instruction.

Venkatraman Govindaraju venkatra at cs.wisc.edu
Sat Mar 1 01:28:18 PST 2014


Author: venkatra
Date: Sat Mar  1 03:28:18 2014
New Revision: 202581

URL: http://llvm.org/viewvc/llvm-project?rev=202581&view=rev
Log:
[Sparc] Add support to decode unimp instruction.

Modified:
    llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td
    llvm/trunk/test/MC/Disassembler/Sparc/sparc.txt

Modified: llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td?rev=202581&r1=202580&r2=202581&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td (original)
+++ llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td Sat Mar  1 03:28:18 2014
@@ -321,8 +321,8 @@ let isBarrier = 1, isTerminator = 1, rd
   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

Modified: llvm/trunk/test/MC/Disassembler/Sparc/sparc.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Disassembler/Sparc/sparc.txt?rev=202581&r1=202580&r2=202581&view=diff
==============================================================================
--- llvm/trunk/test/MC/Disassembler/Sparc/sparc.txt (original)
+++ llvm/trunk/test/MC/Disassembler/Sparc/sparc.txt Sat Mar  1 03:28:18 2014
@@ -186,3 +186,5 @@
 # CHECK: wr %g1, -2, %y
 0x81 0x80 0x7f 0xfe
 
+# CHECK: unimp 12
+0x00 0x00 0x00 0x0c





More information about the llvm-commits mailing list