Skip to content

Commit b2e8de5

Browse files
committed
Add other instructions & fix typo
Created using spr 1.3.5
1 parent 055fe7c commit b2e8de5

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

llvm/lib/Target/Sparc/SparcInstrUAOSA.td

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===---- SparcInstrVIS.td - Visual Instruction Set extensions (VIS) -----===//
1+
//=== SparcInstrUAOSA.td - UltraSPARC/Oracle SPARC Architecture extensions ===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -18,4 +18,19 @@ def ALLCLEAN : InstSP<(outs), (ins), "allclean", []> {
1818
let Inst{29-19} = 0b00010110001;
1919
let Inst{18-0} = 0;
2020
}
21+
def INVALW : InstSP<(outs), (ins), "invalw", []> {
22+
let op = 2;
23+
let Inst{29-19} = 0b00101110001;
24+
let Inst{18-0} = 0;
25+
}
26+
def NORMALW : InstSP<(outs), (ins), "normalw", []> {
27+
let op = 2;
28+
let Inst{29-19} = 0b00100110001;
29+
let Inst{18-0} = 0;
30+
}
31+
def OTHERW : InstSP<(outs), (ins), "otherw", []> {
32+
let op = 2;
33+
let Inst{29-19} = 0b00011110001;
34+
let Inst{18-0} = 0;
35+
}
2136
} // Predicates = [HasUA2005]

llvm/test/MC/Disassembler/Sparc/sparc-ua-osa.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@
44

55
# CHECK: allclean
66
0x85,0x88,0x00,0x00
7+
# CHECK: invalw
8+
0x8b,0x88,0x00,0x00
9+
# CHECK: otherw
10+
0x87,0x88,0x00,0x00
11+
# CHECK: normalw
12+
0x89,0x88,0x00,0x00

llvm/test/MC/Sparc/sparc-ua2005.s

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@
66
! NO-UA2005: error: instruction requires a CPU feature not currently enabled
77
! UA2005: allclean ! encoding: [0x85,0x88,0x00,0x00]
88
allclean
9+
! NO-UA2005: error: instruction requires a CPU feature not currently enabled
10+
! UA2005: invalw ! encoding: [0x8b,0x88,0x00,0x00]
11+
invalw
12+
! NO-UA2005: error: instruction requires a CPU feature not currently enabled
13+
! UA2005: otherw ! encoding: [0x87,0x88,0x00,0x00]
14+
otherw
15+
! NO-UA2005: error: instruction requires a CPU feature not currently enabled
16+
! UA2005: normalw ! encoding: [0x89,0x88,0x00,0x00]
17+
normalw

0 commit comments

Comments
 (0)