1
1
// RUN: not llvm - mc - triple x86_64 - unknown - unknown -- show - encoding %s 2 > %t.err | FileCheck -- check - prefix= 64 %s
2
- // RUN: FileCheck -- check - prefix=ERR64 < %t.err %s
2
+ // RUN: FileCheck -- input - file= %t.err %s -- check - prefix=ERR64 -- implicit - check - not =error:
3
3
// RUN: not llvm - mc - triple i386 - unknown - unknown -- show - encoding %s 2 > %t.err | FileCheck -- check - prefix= 32 %s
4
4
// RUN: FileCheck -- check - prefix=ERR32 < %t.err %s
5
5
// RUN: not llvm - mc - triple i386 - unknown - unknown - code16 -- show - encoding %s 2 > %t.err | FileCheck -- check - prefix= 16 %s
@@ -21,7 +21,7 @@ lodsb (%esi), %al
21
21
// 16 : lodsb (% esi ) , % al # encoding: [ 0x67 , 0xac ]
22
22
23
23
lodsb (% si ) , % al
24
- // ERR64: invalid 16 - bit base register
24
+ // ERR64: [[ #@LINE - 1 ]] : [[ # ]] : error: invalid 16 - bit base register
25
25
// 32 : lodsb (% si ) , % al # encoding: [ 0x67 , 0xac ]
26
26
// 16 : lodsb (% si ) , % al # encoding: [ 0xac ]
27
27
@@ -31,12 +31,12 @@ lodsl %gs:(%esi)
31
31
// 16 : lodsl % gs :(% esi ) , % eax # encoding: [ 0x67 , 0x65 , 0x66 , 0xad ]
32
32
33
33
lodsl (% edi ) , % eax
34
- // ERR64: invalid operand
34
+ // ERR64: [[ #@LINE - 1 ]] : [[ # ]] : error: invalid operand
35
35
// ERR32: invalid operand
36
36
// ERR16: invalid operand
37
37
38
38
lodsl 44 (% edi ) , % eax
39
- // ERR64: invalid operand
39
+ // ERR64: [[ #@LINE - 1 ]] : [[ # ]] : error: invalid operand
40
40
// ERR32: invalid operand
41
41
// ERR16: invalid operand
42
42
@@ -56,7 +56,7 @@ stos %eax, (%edi)
56
56
// 16 : stosl % eax , % es :(% edi ) # encoding: [ 0x67 , 0x66 , 0xab ]
57
57
58
58
stosb % al , % fs :(% edi )
59
- // ERR64: invalid operand for instruction
59
+ // ERR64: [[ #@LINE - 1 ]] : [[ # ]] : error: invalid operand for instruction
60
60
// ERR32: invalid operand for instruction
61
61
// ERR16: invalid operand for instruction
62
62
@@ -86,12 +86,12 @@ scasq %es:(%edi)
86
86
// ERR16: 64 - bit
87
87
88
88
scasl % es :(% edi ) , % al
89
- // ERR64: invalid operand
89
+ // ERR64: [[ #@LINE - 1 ]] : [[ # ]] : error: invalid operand
90
90
// ERR32: invalid operand
91
91
// ERR16: invalid operand
92
92
93
93
scas % es :(% di ) , % ax
94
- // ERR64: invalid 16 - bit base register
94
+ // ERR64: [[ #@LINE - 1 ]] : [[ # ]] : error: invalid 16 - bit base register
95
95
// 16 : scasw % es :(% di ) , % ax # encoding: [ 0xaf ]
96
96
// 32 : scasw % es :(% di ) , % ax # encoding: [ 0x67 , 0x66 , 0xaf ]
97
97
@@ -106,7 +106,7 @@ cmpsw (%edi), (%esi)
106
106
// 16 : cmpsw % es :(% edi ) , (% esi ) # encoding: [ 0x67 , 0xa7 ]
107
107
108
108
cmpsb (% di ) , (% esi )
109
- // ERR64: invalid 16 - bit base register
109
+ // ERR64: [[ #@LINE - 1 ]] : [[ # ]] : error: invalid 16 - bit base register
110
110
// ERR32: mismatching source and destination
111
111
// ERR16: mismatching source and destination
112
112
@@ -146,7 +146,7 @@ insw %dx, (%edi)
146
146
// 16 : insw % dx , % es :(% edi ) # encoding: [ 0x67 , 0x6d ]
147
147
148
148
insw % dx , (% bx )
149
- // ERR64: invalid 16 - bit base register
149
+ // ERR64: [[ #@LINE - 1 ]] : [[ # ]] : error: invalid 16 - bit base register
150
150
// 32 : insw % dx , % es :(% di ) # encoding: [ 0x67 , 0x66 , 0x6d ]
151
151
// 16 : insw % dx , % es :(% di ) # encoding: [ 0x6d ]
152
152
@@ -161,18 +161,20 @@ insw %dx, (%rbx)
161
161
// ERR16: 64 - bit
162
162
163
163
movdir64b 291 (% si ) , % ecx
164
+ // ERR64: error: invalid 16 - bit base register
164
165
// ERR32: invalid operand
165
166
// ERR16: invalid operand
166
167
167
168
movdir64b 291 (% esi ) , % cx
169
+ // ERR64: error: invalid operand for instruction
168
170
// ERR32: invalid operand
169
171
// ERR16: invalid operand
170
172
171
173
movdir64b (% rdx ) , % r15d
172
- // ERR64: invalid operand
174
+ // ERR64: [[ #@LINE - 1 ]] : [[ # ]] : error: invalid operand
173
175
174
176
movdir64b (% edx ) , % r15
175
- // ERR64: invalid operand
177
+ // ERR64: [[ #@LINE - 1 ]] : [[ # ]] : error: invalid operand
176
178
177
179
movdir64b (% eip ) , % ebx
178
180
// 64 : movdir64b (% eip ) , % ebx # encoding: [ 0x67 , 0x66 , 0x0f , 0x38 , 0xf8 , 0x1d , 0x00 , 0x00 , 0x00 , 0x00 ]
@@ -185,4 +187,4 @@ movdir64b 291(%esi, %eiz, 4), %ebx
185
187
// 32 : movdir64b 291 (% esi , %eiz , 4 ) , % ebx # encoding: [ 0x66 , 0x0f , 0x38 , 0xf8 , 0x9c , 0xa6 , 0x23 , 0x01 , 0x00 , 0x00 ]
186
188
187
189
movdir64b 291 (% rsi , %riz , 4 ) , % rbx
188
- // 64 : movdir64b 291 (% rsi , %riz , 4 ) , % rbx # encoding: [ 0x66 , 0x0f , 0x38 , 0xf8 , 0x9c , 0xa6 , 0x23 , 0x01 , 0x00 , 0x00 ]
190
+ // 64 : movdir64b 291 (% rsi , %riz , 4 ) , % rbx # encoding: [ 0x66 , 0x0f , 0x38 , 0xf8 , 0x9c , 0xa6 , 0x23 , 0x01 , 0x00 , 0x00 ]
0 commit comments