|
1 | 1 | # RUN: not llvm-mc -triple=riscv32 -mattr=+experimental-xqccmp -M no-aliases -show-encoding < %s 2>&1 \ |
2 | 2 | # RUN: | FileCheck -check-prefixes=CHECK-ERROR %s |
3 | 3 |
|
4 | | -# CHECK-ERROR: error: invalid operand for instruction |
| 4 | +# CHECK-ERROR: :[[@LINE+1]]:14: error: invalid operand for instruction |
5 | 5 | qc.cm.mvsa01 a1, a2 |
6 | 6 |
|
7 | | -# CHECK-ERROR: error: rs1 and rs2 must be different |
| 7 | +# CHECK-ERROR: :[[@LINE+1]]:14: error: rs1 and rs2 must be different |
8 | 8 | qc.cm.mvsa01 s0, s0 |
9 | 9 |
|
10 | | -# CHECK-ERROR: error: invalid operand for instruction |
| 10 | +# CHECK-ERROR: :[[@LINE+1]]:14: error: invalid operand for instruction |
11 | 11 | qc.cm.mva01s a1, a2 |
12 | 12 |
|
13 | | -# CHECK-ERROR: error: invalid register list, {ra, s0-s10} or {x1, x8-x9, x18-x26} is not supported |
| 13 | +# CHECK-ERROR: :[[@LINE+1]]:26: error: invalid register list, {ra, s0-s10} or {x1, x8-x9, x18-x26} is not supported |
14 | 14 | qc.cm.popretz {ra, s0-s10}, 112 |
15 | 15 |
|
16 | | -# CHECK-ERROR: error: stack adjustment for register list must be a multiple of 16 bytes in the range [16, 64] |
| 16 | +# CHECK-ERROR: :[[@LINE+1]]:28: error: stack adjustment for register list must be a multiple of 16 bytes in the range [16, 64] |
17 | 17 | qc.cm.popretz {ra, s0-s1}, 112 |
18 | 18 |
|
19 | | -# CHECK-ERROR: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16] |
| 19 | +# CHECK-ERROR: :[[@LINE+1]]:18: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16] |
20 | 20 | qc.cm.push {ra}, 16 |
21 | 21 |
|
22 | | -# CHECK-ERROR: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16] |
| 22 | +# CHECK-ERROR: :[[@LINE+1]]:24: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16] |
23 | 23 | qc.cm.pushfp {ra, s0}, 16 |
24 | 24 |
|
25 | | -# CHECK-ERROR: error: stack adjustment for register list must be a multiple of 16 bytes in the range [16, 64] |
| 25 | +# CHECK-ERROR: :[[@LINE+1]]:25: error: stack adjustment for register list must be a multiple of 16 bytes in the range [16, 64] |
26 | 26 | qc.cm.pop {ra, s0-s1}, -32 |
27 | 27 |
|
28 | | -# CHECK-ERROR: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16] |
| 28 | +# CHECK-ERROR: :[[@LINE+1]]:19: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16] |
29 | 29 | qc.cm.push {ra}, -8 |
30 | 30 |
|
31 | | -# CHECK-ERROR: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16] |
| 31 | +# CHECK-ERROR: :[[@LINE+1]]:25: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16] |
32 | 32 | qc.cm.pushfp {ra, s0}, -12 |
33 | 33 |
|
34 | | -# CHECK-ERROR: error: stack adjustment for register list must be a multiple of 16 bytes in the range [16, 64] |
| 34 | +# CHECK-ERROR: :[[@LINE+1]]:25: error: stack adjustment for register list must be a multiple of 16 bytes in the range [16, 64] |
35 | 35 | qc.cm.pop {ra, s0-s1}, -40 |
36 | 36 |
|
37 | | -# CHECK-ERROR: error: register list must include 's0' or 'x8' |
| 37 | +# CHECK-ERROR: :[[@LINE+1]]:17: error: register list must include 's0' or 'x8' |
38 | 38 | qc.cm.pushfp {ra}, -16 |
39 | 39 |
|
0 commit comments