Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / rv32e-invalid.s
blob9c19d3f40bcff7753e2a23b2a57805b26b4b4410
1 # RUN: not llvm-mc -triple riscv32 -mattr=+e < %s 2>&1 | FileCheck %s
2 # RUN: llvm-mc -filetype=obj -triple=riscv32 < %s \
3 # RUN: | llvm-objdump --mattr=+e -M no-aliases -d -r - \
4 # RUN: | FileCheck -check-prefix=CHECK-DIS %s
5 # RUN: not llvm-mc -triple riscv64 -mattr=+e < %s 2>&1 | FileCheck %s
6 # RUN: llvm-mc -filetype=obj -triple=riscv64 < %s \
7 # RUN: | llvm-objdump --mattr=+e -M no-aliases -d -r - \
8 # RUN: | FileCheck -check-prefix=CHECK-DIS %s
10 # Perform a simple check that registers x16-x31 (and the equivalent ABI names)
11 # are rejected for RV32E/RV64E, when both assembling and disassembling.
14 # CHECK-DIS: 37 18 00 00 <unknown>
15 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
16 lui x16, 1
17 # CHECK-DIS: b7 28 00 00 <unknown>
18 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
19 lui x17, 2
20 # CHECK-DIS: 37 39 00 00 <unknown>
21 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
22 lui x18, 3
23 # CHECK-DIS: b7 49 00 00 <unknown>
24 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
25 lui x19, 4
26 # CHECK-DIS: 37 5a 00 00 <unknown>
27 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
28 lui x20, 5
29 # CHECK-DIS: b7 6a 00 00 <unknown>
30 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
31 lui x21, 6
32 # CHECK-DIS: 37 7b 00 00 <unknown>
33 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
34 lui x22, 7
35 # CHECK-DIS: b7 8b 00 00 <unknown>
36 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
37 lui x23, 8
38 # CHECK-DIS: 37 9c 00 00 <unknown>
39 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
40 lui x24, 9
41 # CHECK-DIS: b7 ac 00 00 <unknown>
42 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
43 lui x25, 10
44 # CHECK-DIS: 37 bd 00 00 <unknown>
45 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
46 lui x26, 11
47 # CHECK-DIS: b7 cd 00 00 <unknown>
48 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
49 lui x27, 12
50 # CHECK-DIS: 37 de 00 00 <unknown>
51 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
52 lui x28, 13
53 # CHECK-DIS: b7 ee 00 00 <unknown>
54 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
55 lui x29, 14
56 # CHECK-DIS: 37 ff 00 00 <unknown>
57 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
58 lui x30, 15
59 # CHECK-DIS: b7 0f 01 00 <unknown>
60 # CHECK: :[[@LINE+1]]:5: error: invalid operand for instruction
61 lui x31, 16
63 # CHECK-DIS: 17 18 01 00 <unknown>
64 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
65 auipc a6, 17
66 # CHECK-DIS: 97 28 01 00 <unknown>
67 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
68 auipc a7, 18
69 # CHECK-DIS: 17 39 01 00 <unknown>
70 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
71 auipc s2, 19
72 # CHECK-DIS: 97 49 01 00 <unknown>
73 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
74 auipc s3, 20
75 # CHECK-DIS: 17 5a 01 00 <unknown>
76 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
77 auipc s4, 21
78 # CHECK-DIS: 97 6a 01 00 <unknown>
79 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
80 auipc s5, 22
81 # CHECK-DIS: 17 7b 01 00 <unknown>
82 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
83 auipc s6, 23
84 # CHECK-DIS: 97 8b 01 00 <unknown>
85 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
86 auipc s7, 24
87 # CHECK-DIS: 17 9c 01 00 <unknown>
88 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
89 auipc s8, 25
90 # CHECK-DIS: 97 ac 01 00 <unknown>
91 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
92 auipc s9, 26
93 # CHECK-DIS: 17 bd 01 00 <unknown>
94 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
95 auipc s10, 27
96 # CHECK-DIS: 97 cd 01 00 <unknown>
97 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
98 auipc s11, 28
99 # CHECK-DIS: 17 de 01 00 <unknown>
100 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
101 auipc t3, 29
102 # CHECK-DIS: 97 ee 01 00 <unknown>
103 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
104 auipc t4, 30
105 # CHECK-DIS: 17 ff 01 00 <unknown>
106 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
107 auipc t5, 31
108 # CHECK-DIS: 97 0f 02 00 <unknown>
109 # CHECK: :[[@LINE+1]]:7: error: invalid operand for instruction
110 auipc t6, 32