Skip to content

Commit 469d103

Browse files
committed
SPARC,test: Refactor error checking
* Test line/column * Remove copied source lines from diagnostics
1 parent 893fa06 commit 469d103

File tree

2 files changed

+157
-298
lines changed

2 files changed

+157
-298
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,53 @@
33

44
!! VIS 2 instructions.
55

6-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
6+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
77
! VIS2: bmask %o0, %o1, %o2 ! encoding: [0x95,0xb2,0x03,0x29]
88
bmask %o0, %o1, %o2
9-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
9+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
1010
! VIS2: bshuffle %f0, %f2, %f4 ! encoding: [0x89,0xb0,0x09,0x82]
1111
bshuffle %f0, %f2, %f4
1212

13-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
13+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
1414
! VIS2: siam 0 ! encoding: [0x81,0xb0,0x10,0x20]
1515
siam 0
16-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
16+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
1717
! VIS2: siam 1 ! encoding: [0x81,0xb0,0x10,0x21]
1818
siam 1
19-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
19+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
2020
! VIS2: siam 2 ! encoding: [0x81,0xb0,0x10,0x22]
2121
siam 2
22-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
22+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
2323
! VIS2: siam 3 ! encoding: [0x81,0xb0,0x10,0x23]
2424
siam 3
25-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
25+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
2626
! VIS2: siam 4 ! encoding: [0x81,0xb0,0x10,0x24]
2727
siam 4
28-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
28+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
2929
! VIS2: siam 5 ! encoding: [0x81,0xb0,0x10,0x25]
3030
siam 5
31-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
31+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
3232
! VIS2: siam 6 ! encoding: [0x81,0xb0,0x10,0x26]
3333
siam 6
34-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
34+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
3535
! VIS2: siam 7 ! encoding: [0x81,0xb0,0x10,0x27]
3636
siam 7
3737

38-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
38+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
3939
! VIS2: edge8n %o0, %o1, %o2 ! encoding: [0x95,0xb2,0x00,0x29]
4040
edge8n %o0, %o1, %o2
41-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
41+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
4242
! VIS2: edge8ln %o0, %o1, %o2 ! encoding: [0x95,0xb2,0x00,0x69]
4343
edge8ln %o0, %o1, %o2
44-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
44+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
4545
! VIS2: edge16n %o0, %o1, %o2 ! encoding: [0x95,0xb2,0x00,0xa9]
4646
edge16n %o0, %o1, %o2
47-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
47+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
4848
! VIS2: edge16ln %o0, %o1, %o2 ! encoding: [0x95,0xb2,0x00,0xe9]
4949
edge16ln %o0, %o1, %o2
50-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
50+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
5151
! VIS2: edge32n %o0, %o1, %o2 ! encoding: [0x95,0xb2,0x01,0x29]
5252
edge32n %o0, %o1, %o2
53-
! NO-VIS2: error: instruction requires a CPU feature not currently enabled
53+
! NO-VIS2: [[#@LINE+2]]:1: error: instruction requires a CPU feature not currently enabled
5454
! VIS2: edge32ln %o0, %o1, %o2 ! encoding: [0x95,0xb2,0x01,0x69]
5555
edge32ln %o0, %o1, %o2

0 commit comments

Comments
 (0)