2
2
# RUN: | FileCheck %s --check-prefixes=CHECK-ERROR
3
3
4
4
cv.lb t0, (0 ), 0
5
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
5
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
6
6
7
7
cv.lb 0 , (t1), 0
8
8
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
@@ -17,7 +17,7 @@ cv.lb t0, (t1), 2048
17
17
# CHECK-ERROR: :[[@LINE-1]]:17: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
18
18
19
19
cv.lb t0, (0 ), t1
20
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
20
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
21
21
22
22
cv.lb 0 , (t1), t1
23
23
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
@@ -32,7 +32,7 @@ cv.lb t0, (t1), t2, t3
32
32
# CHECK-ERROR: :[[@LINE-1]]:21: error: invalid operand for instruction
33
33
34
34
cv.lbu t0, (0 ), 0
35
- # CHECK-ERROR: :[[@LINE-1]]:12: error: operands must be register and register
35
+ # CHECK-ERROR: :[[@LINE-1]]:12: error: invalid operand for instruction
36
36
37
37
cv.lbu 0 , (t1), 0
38
38
# CHECK-ERROR: :[[@LINE-1]]:8: error: invalid operand for instruction
@@ -47,7 +47,7 @@ cv.lbu t0, (t1), 2048
47
47
# CHECK-ERROR: :[[@LINE-1]]:18: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
48
48
49
49
cv.lbu t0, (0 ), t1
50
- # CHECK-ERROR: :[[@LINE-1]]:12: error: operands must be register and register
50
+ # CHECK-ERROR: :[[@LINE-1]]:12: error: invalid operand for instruction
51
51
52
52
cv.lbu 0 , (t1), t1
53
53
# CHECK-ERROR: :[[@LINE-1]]:8: error: invalid operand for instruction
@@ -62,7 +62,7 @@ cv.lbu t0, (t1), t2, t3
62
62
# CHECK-ERROR: :[[@LINE-1]]:22: error: invalid operand for instruction
63
63
64
64
cv.lh t0, (0 ), 0
65
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
65
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
66
66
67
67
cv.lh 0 , (t1), 0
68
68
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
@@ -77,10 +77,10 @@ cv.lh t0, (t1), 2048
77
77
# CHECK-ERROR: :[[@LINE-1]]:17: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
78
78
79
79
cv.lh t0, (0 ), t1
80
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
80
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
81
81
82
82
cv.lh t0, t1(0 )
83
- # CHECK-ERROR: :[[@LINE-1]]:14: error: expected register
83
+ # CHECK-ERROR: :[[@LINE-1]]:14: error: expected GPR register
84
84
85
85
cv.lh 0 , (t1), t1
86
86
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
@@ -95,7 +95,7 @@ cv.lh t0, (t1), t2, t3
95
95
# CHECK-ERROR: :[[@LINE-1]]:21: error: invalid operand for instruction
96
96
97
97
cv.lhu t0, (0 ), 0
98
- # CHECK-ERROR: :[[@LINE-1]]:12: error: operands must be register and register
98
+ # CHECK-ERROR: :[[@LINE-1]]:12: error: invalid operand for instruction
99
99
100
100
cv.lhu 0 , (t1), 0
101
101
# CHECK-ERROR: :[[@LINE-1]]:8: error: invalid operand for instruction
@@ -110,10 +110,10 @@ cv.lhu t0, (t1), 2048
110
110
# CHECK-ERROR: :[[@LINE-1]]:18: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
111
111
112
112
cv.lhu t0, (0 ), t1
113
- # CHECK-ERROR: :[[@LINE-1]]:12: error: operands must be register and register
113
+ # CHECK-ERROR: :[[@LINE-1]]:12: error: invalid operand for instruction
114
114
115
115
cv.lhu t0, t1(0 )
116
- # CHECK-ERROR: :[[@LINE-1]]:15: error: expected register
116
+ # CHECK-ERROR: :[[@LINE-1]]:15: error: expected GPR register
117
117
118
118
cv.lhu 0 , t0, t1
119
119
# CHECK-ERROR: :[[@LINE-1]]:13: error: expected '(' or invalid operand
@@ -128,7 +128,7 @@ cv.lhu t0, (t1), t2, t3
128
128
# CHECK-ERROR: :[[@LINE-1]]:22: error: invalid operand for instruction
129
129
130
130
cv.lw t0, (0 ), 0
131
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
131
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
132
132
133
133
cv.lw 0 , (t1), 0
134
134
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
@@ -143,10 +143,10 @@ cv.lw t0, (t1), 2048
143
143
# CHECK-ERROR: :[[@LINE-1]]:17: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
144
144
145
145
cv.lw t0, (0 ), t1
146
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
146
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
147
147
148
148
cv.lw t0, t1(0 )
149
- # CHECK-ERROR: :[[@LINE-1]]:14: error: expected register
149
+ # CHECK-ERROR: :[[@LINE-1]]:14: error: expected GPR register
150
150
151
151
cv.lw 0 , (t0), t1
152
152
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
@@ -158,22 +158,22 @@ cv.lw t0, (t1)
158
158
# CHECK-ERROR: :[[@LINE-1]]:1: error: too few operands for instruction
159
159
160
160
cv.lw t0, (t1), t2, t3
161
- # CHECK-ERROR: :[[@LINE-1]]:21: error: invalid operand for instruction
161
+ # CHECK-ERROR: :[[@LINE-1]]:21: error: invalid operand for instruction
162
162
163
163
cv.sb t0, (0 ), 0
164
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
164
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
165
165
166
166
cv.sb 0 , (t0), 0
167
167
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
168
168
169
169
cv.sb t0, 0 (t1)
170
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
170
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
171
171
172
172
cv.sb t0, (t1), 2048
173
173
# CHECK-ERROR: :[[@LINE-1]]:17: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
174
174
175
175
cv.sb t0, (0 ), t1
176
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
176
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
177
177
178
178
cv.sb 0 , (t1), t1
179
179
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
@@ -182,19 +182,19 @@ cv.sb t0
182
182
# CHECK-ERROR: :[[@LINE-1]]:1: error: too few operands for instruction
183
183
184
184
cv.sh t0, (0 ), 0
185
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
185
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
186
186
187
187
cv.sh 0 , (t1), 0
188
188
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
189
189
190
190
cv.sh t0, 0 (t1)
191
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
191
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
192
192
193
193
cv.sh t0, (t1), 2048
194
194
# CHECK-ERROR: :[[@LINE-1]]:17: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
195
195
196
196
cv.sh t0, (0 ), t1
197
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
197
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
198
198
199
199
cv.sh 0 , (t1), t1
200
200
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
@@ -203,22 +203,28 @@ cv.sh t0
203
203
# CHECK-ERROR: :[[@LINE-1]]:1: error: too few operands for instruction
204
204
205
205
cv.sw t0, (0 ), 0
206
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
206
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
207
207
208
208
cv.sw 0 , (t1), 0
209
209
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
210
210
211
211
cv.sw t0, 0 (t1)
212
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
212
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
213
213
214
214
cv.sw t0, (t1), 2048
215
215
# CHECK-ERROR: :[[@LINE-1]]:17: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
216
216
217
217
cv.sw t0, (0 ), t1
218
- # CHECK-ERROR: :[[@LINE-1]]:11: error: operands must be register and register
218
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: invalid operand for instruction
219
219
220
220
cv.sw 0 , (t1), t1
221
221
# CHECK-ERROR: :[[@LINE-1]]:7: error: invalid operand for instruction
222
222
223
223
cv.sw t0
224
224
# CHECK-ERROR: :[[@LINE-1]]:1: error: too few operands for instruction
225
+
226
+ cv.lb t0, f0(t1)
227
+ # CHECK-ERROR: :[[@LINE-1]]:11: error: expected GPR register
228
+
229
+ cv.sb t0, t0(f1)
230
+ # CHECK-ERROR: :[[@LINE-1]]:14: error: expected GPR register
0 commit comments