Skip to content

Commit b78b5ba

Browse files
authored
[NFC][PowerPC] Merge ppc64 encoding error tests (llvm#169669)
Based on the RUN lines, there is actually no need for different versions of these error files since no cpu specific option needed. Combine to reduce confusion and maintenance as these are not huge files.
1 parent cca66a2 commit b78b5ba

File tree

2 files changed

+65
-71
lines changed

2 files changed

+65
-71
lines changed

llvm/test/MC/PowerPC/ppc64-encoding-ISA31-errors.s

Lines changed: 0 additions & 71 deletions
This file was deleted.

llvm/test/MC/PowerPC/ppc64-errors.s

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,71 @@
44
# RUN: not llvm-mc -triple powerpc64le-unknown-unknown < %s 2> %t
55
# RUN: FileCheck < %t %s
66

7+
# From ISA31
8+
9+
# CHECK: error: invalid operand for instruction
10+
paddi 1, 1, 32, 1
11+
12+
# CHECK: error: invalid operand for instruction
13+
pld 1, 32(1), 1
14+
15+
# CHECK: error: invalid operand for instruction
16+
plbz 1, 32(1), 1
17+
18+
# CHECK: error: invalid operand for instruction
19+
plfd 1, 32(1), 1
20+
21+
# CHECK: error: invalid operand for instruction
22+
plfs 1, 32(1), 1
23+
24+
# CHECK: error: invalid operand for instruction
25+
plha 1, 32(1), 1
26+
27+
# CHECK: error: invalid operand for instruction
28+
plhz 1, 32(1), 1
29+
30+
# CHECK: error: invalid operand for instruction
31+
plwa 1, 32(1), 1
32+
33+
# CHECK: error: invalid operand for instruction
34+
plwz 1, 32(1), 1
35+
36+
# CHECK: error: invalid operand for instruction
37+
plxsd 1, 32(1), 1
38+
39+
# CHECK: error: invalid operand for instruction
40+
plxssp 1, 32(1), 1
41+
42+
# CHECK: error: invalid operand for instruction
43+
plxv 1, 32(1), 1
44+
45+
# CHECK: error: invalid operand for instruction
46+
pstb 1, 32(1), 1
47+
48+
# CHECK: error: invalid operand for instruction
49+
pstd 1, 32(1), 1
50+
51+
# CHECK: error: invalid operand for instruction
52+
pstfd 1, 32(1), 1
53+
54+
# CHECK: error: invalid operand for instruction
55+
pstfs 1, 32(1), 1
56+
57+
# CHECK: error: invalid operand for instruction
58+
psth 1, 32(1), 1
59+
60+
# CHECK: error: invalid operand for instruction
61+
pstw 1, 32(1), 1
62+
63+
# CHECK: error: invalid operand for instruction
64+
pstxsd 1, 32(1), 1
65+
66+
# CHECK: error: invalid operand for instruction
67+
pstxssp 1, 32(1), 1
68+
69+
# CHECK: error: invalid operand for instruction
70+
pstxv 1, 32(1), 1
71+
772
# Register operands
873

974
# CHECK: error: invalid operand for instruction

0 commit comments

Comments
 (0)