From: Venkatraman Govindaraju Date: Sat, 1 Mar 2014 09:28:18 +0000 (+0000) Subject: [Sparc] Add support to decode unimp instruction. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9314308db1c11de8e13014ac74b1d5e2fd442f57;p=oota-llvm.git [Sparc] Add support to decode unimp instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202581 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index 0a45b371b16..c990741b6b4 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.td @@ -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 diff --git a/test/MC/Disassembler/Sparc/sparc.txt b/test/MC/Disassembler/Sparc/sparc.txt index 8c16c19c274..924f65ffce6 100644 --- a/test/MC/Disassembler/Sparc/sparc.txt +++ b/test/MC/Disassembler/Sparc/sparc.txt @@ -186,3 +186,5 @@ # CHECK: wr %g1, -2, %y 0x81 0x80 0x7f 0xfe +# CHECK: unimp 12 +0x00 0x00 0x00 0x0c