]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/i386/x86-64-inval.l
x86-64/Intel: issue diagnostic for out of range displacement
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / i386 / x86-64-inval.l
1 .*: Assembler messages:
2 .*:4: Error: .*
3 .*:5: Error: .*
4 .*:6: Error: .*
5 .*:7: Error: .*
6 .*:8: Error: .*
7 .*:9: Error: .*
8 .*:10: Error: .*
9 .*:11: Error: .*
10 .*:12: Error: .*
11 .*:13: Error: .*
12 .*:14: Error: .*
13 .*:15: Error: .*
14 .*:16: Error: .*
15 .*:17: Error: .*
16 .*:18: Error: .*
17 .*:19: Error: .*
18 .*:20: Error: .*
19 .*:21: Error: .*
20 .*:22: Error: .*
21 .*:23: Error: .*
22 .*:24: Error: .*
23 .*:25: Error: .*
24 .*:26: Error: .*
25 .*:27: Error: .*
26 .*:28: Error: .*
27 .*:29: Error: .*
28 .*:30: Error: .*
29 .*:31: Error: .*
30 .*:32: Error: .*
31 .*:33: Error: .*
32 .*:34: Error: .*
33 .*:35: Error: .*
34 .*:36: Error: .*
35 .*:37: Error: .*
36 .*:38: Error: .*
37 .*:39: Error: .*
38 .*:40: Error: .*
39 .*:41: Error: .*
40 .*:42: Error: .*
41 .*:43: Error: .*
42 .*:44: Error: .*
43 .*:45: Error: .*
44 .*:46: Error: .*
45 .*:47: Error: .*
46 .*:48: Error: .*
47 .*:49: Error: .*
48 .*:50: Error: .*
49 .*:51: Error: .*
50 .*:52: Error: .*
51 .*:53: Error: .*
52 .*:54: Error: .*
53 .*:55: Error: .*
54 .*:56: Error: .*
55 .*:57: Error: .*
56 .*:58: Error: .*
57 .*:59: Error: .*
58 .*:60: Error: .*
59 .*:61: Error: .*
60 .*:62: Error: .*
61 .*:63: Error: .*
62 .*:64: Error: .*
63 .*:65: Error: .*
64 .*:67: Error: .*
65 .*:68: Error: .*
66 .*:70: Error: .*
67 .*:71: Error: .*
68 .*:72: Error: .*
69 .*:73: Error: .*
70 .*:74: Error: .*
71 .*:75: Error: .*
72 .*:76: Error: .*
73 .*:77: Error: .*
74 .*:78: Error: .*
75 .*:79: Error: .*
76 .*:80: Error: .*
77 .*:81: Error: .*
78 .*:84: Error: .*
79 .*:85: Error: .*
80 .*:86: Error: .*
81 .*:87: Error: .*
82 .*:88: Error: .*
83 .*:89: Error: .*
84 .*:90: Error: .*
85 .*:91: Error: .*
86 .*:92: Error: .*
87 .*:93: Error: .*
88 .*:94: Error: .*
89 .*:95: Error: .*
90 .*:96: Error: .*
91 .*:97: Error: .*
92 .*:98: Error: .*
93 .*:99: Error: .*
94 .*:100: Error: .*
95 .*:101: Error: .*
96 .*:102: Error: .*
97 .*:103: Error: .*
98 .*:104: Error: .*
99 .*:105: Error: .*
100 .*:106: Error: .*
101 .*:107: Error: .*
102 .*:108: Error: .*
103 .*:109: Error: .*
104 .*:110: Error: .*
105 .*:111: Error: .*
106 .*:112: Error: .*
107 .*:113: Error: .*
108 .*:114: Error: .*
109 .*:115: Error: .*
110 .*:116: Error: .*
111 .*:117: Error: .*
112 .*:118: Error: .*
113 GAS LISTING .*
114
115
116 [ ]*1[ ]+\.text
117 [ ]*2[ ]+\.allow_index_reg
118 [ ]*3[ ]+\# All the following should be illegal for x86-64
119 [ ]*4[ ]+aaa \# illegal
120 [ ]*5[ ]+aad \# illegal
121 [ ]*6[ ]+aam \# illegal
122 [ ]*7[ ]+aas \# illegal
123 [ ]*8[ ]+arpl %ax,%ax \# illegal
124 [ ]*9[ ]+bound %eax,\(%rax\) \# illegal
125 [ ]*10[ ]+calll \*%eax \# 32-bit data size not allowed
126 [ ]*11[ ]+calll \*\(%ax\) \# 32-bit data size not allowed
127 [ ]*12[ ]+calll \*\(%eax\) \# 32-bit data size not allowed
128 [ ]*13[ ]+calll \*\(%r8\) \# 32-bit data size not allowed
129 [ ]*14[ ]+calll \*\(%rax\) \# 32-bit data size not allowed
130 [ ]*15[ ]+callq \*\(%ax\) \# no 16-bit addressing
131 [ ]*16[ ]+daa \# illegal
132 [ ]*17[ ]+das \# illegal
133 [ ]*18[ ]+enterl \$0,\$0 \# can't have 32-bit stack operands
134 [ ]*19[ ]+into \# illegal
135 [ ]*20[ ]+foo: jcxz foo \# No prefix exists to select CX as a counter
136 [ ]*21[ ]+jmpl \*%eax \# 32-bit data size not allowed
137 [ ]*22[ ]+jmpl \*\(%ax\) \# 32-bit data size not allowed
138 [ ]*23[ ]+jmpl \*\(%eax\) \# 32-bit data size not allowed
139 [ ]*24[ ]+jmpl \*\(%r8\) \# 32-bit data size not allowed
140 [ ]*25[ ]+jmpl \*\(%rax\) \# 32-bit data size not allowed
141 [ ]*26[ ]+jmpq \*\(%ax\) \# no 16-bit addressing
142 [ ]*27[ ]+lcalll \$0,\$0 \# illegal
143 [ ]*28[ ]+lcallq \$0,\$0 \# illegal
144 [ ]*29[ ]+ldsl %eax,\(%rax\) \# illegal
145 [ ]*30[ ]+ldsq %rax,\(%rax\) \# illegal
146 [ ]*31[ ]+lesl %eax,\(%rax\) \# illegal
147 [ ]*32[ ]+lesq %rax,\(%rax\) \# illegal
148 [ ]*33[ ]+ljmpl \$0,\$0 \# illegal
149 [ ]*34[ ]+ljmpq \$0,\$0 \# illegal
150 [ ]*35[ ]+ljmpq \*\(%rax\) \# 64-bit data size not allowed
151 [ ]*36[ ]+loopw foo \# No prefix exists to select CX as a counter
152 [ ]*37[ ]+loopew foo \# No prefix exists to select CX as a counter
153 [ ]*38[ ]+loopnew foo \# No prefix exists to select CX as a counter
154 [ ]*39[ ]+loopnzw foo \# No prefix exists to select CX as a counter
155 [ ]*40[ ]+loopzw foo \# No prefix exists to select CX as a counter
156 [ ]*41[ ]+leavel \# can't have 32-bit stack operands
157 [ ]*42[ ]+pop %ds \# illegal
158 [ ]*43[ ]+pop %es \# illegal
159 [ ]*44[ ]+pop %ss \# illegal
160 [ ]*45[ ]+popa \# illegal
161 [ ]*46[ ]+popl %eax \# can't have 32-bit stack operands
162 [ ]*47[ ]+push %cs \# illegal
163 [ ]*48[ ]+push %ds \# illegal
164 [ ]*49[ ]+push %es \# illegal
165 [ ]*50[ ]+push %ss \# illegal
166 [ ]*51[ ]+pusha \# illegal
167 [ ]*52[ ]+pushl %eax \# can't have 32-bit stack operands
168 [ ]*53[ ]+pushfl \# can't have 32-bit stack operands
169 [ ]*54[ ]+popfl \# can't have 32-bit stack operands
170 [ ]*55[ ]+retl \# can't have 32-bit stack operands
171 [ ]*56[ ]+insertq \$4,\$2,%xmm2,%ebx \# The last operand must be XMM register\.
172 [ ]*57[ ]+fnstsw %eax
173 \fGAS LISTING .*
174
175
176 [ ]*58[ ]+fnstsw %al
177 [ ]*59[ ]+fstsw %eax
178 [ ]*60[ ]+fstsw %al
179 [ ]*61[ ]+in \$8,%rax
180 [ ]*62[ ]+out %rax,\$8
181 [ ]*63[ ]+movzxl \(%rax\),%rax
182 [ ]*64[ ]+movnti %ax, \(%rax\)
183 [ ]*65[ ]+movntiw %ax, \(%rax\)
184 [ ]*66[ ]+
185 [ ]*67[ ]+mov 0x80000000\(%rax\),%ebx
186 [ ]*68[ ]+mov 0x80000000,%ebx
187 [ ]*69[ ]+
188 [ ]*70[ ]+add \(%rip,%rsi\), %eax
189 [ ]*71[ ]+add \(%rsi,%rip\), %eax
190 [ ]*72[ ]+add \(,%rip\), %eax
191 [ ]*73[ ]+add \(%eip,%esi\), %eax
192 [ ]*74[ ]+add \(%esi,%eip\), %eax
193 [ ]*75[ ]+add \(,%eip\), %eax
194 [ ]*76[ ]+add \(%rsi,%esi\), %eax
195 [ ]*77[ ]+add \(%esi,%rsi\), %eax
196 [ ]*78[ ]+add \(%eiz\), %eax
197 [ ]*79[ ]+add \(%riz\), %eax
198 [ ]*80[ ]+add \(%rax\), %riz
199 [ ]*81[ ]+add \(%rax\), %eiz
200 [ ]*82[ ]+
201 [ ]*83[ ]+\.intel_syntax noprefix
202 [ ]*84[ ]+cmpxchg16b dword ptr \[rax\] \# Must be oword
203 [ ]*85[ ]+movq xmm1, XMMWORD PTR \[rsp\]
204 [ ]*86[ ]+movq xmm1, DWORD PTR \[rsp\]
205 [ ]*87[ ]+movq xmm1, WORD PTR \[rsp\]
206 [ ]*88[ ]+movq xmm1, BYTE PTR \[rsp\]
207 [ ]*89[ ]+movq XMMWORD PTR \[rsp\],xmm1
208 [ ]*90[ ]+movq DWORD PTR \[rsp\],xmm1
209 [ ]*91[ ]+movq WORD PTR \[rsp\],xmm1
210 [ ]*92[ ]+movq BYTE PTR \[rsp\],xmm1
211 [ ]*93[ ]+fnstsw eax
212 [ ]*94[ ]+fnstsw al
213 [ ]*95[ ]+fstsw eax
214 [ ]*96[ ]+fstsw al
215 [ ]*97[ ]+in rax,8
216 [ ]*98[ ]+out 8,rax
217 [ ]*99[ ]+movsx ax, \[rax\]
218 [ ]*100[ ]+movsx eax, \[rax\]
219 [ ]*101[ ]+movsx rax, \[rax\]
220 [ ]*102[ ]+movzx ax, \[rax\]
221 [ ]*103[ ]+movzx eax, \[rax\]
222 [ ]*104[ ]+movzx rax, \[rax\]
223 [ ]*105[ ]+movnti word ptr \[rax\], ax
224 [ ]*106[ ]+calld eax \# 32-bit data size not allowed
225 [ ]*107[ ]+calld \[ax\] \# 32-bit data size not allowed
226 [ ]*108[ ]+calld \[eax\] \# 32-bit data size not allowed
227 [ ]*109[ ]+calld \[r8\] \# 32-bit data size not allowed
228 [ ]*110[ ]+calld \[rax\] \# 32-bit data size not allowed
229 [ ]*111[ ]+callq \[ax\] \# no 16-bit addressing
230 [ ]*112[ ]+jmpd eax \# 32-bit data size not allowed
231 [ ]*113[ ]+jmpd \[ax\] \# 32-bit data size not allowed
232 [ ]*114[ ]+jmpd \[eax\] \# 32-bit data size not allowed
233 \fGAS LISTING .*
234
235
236 [ ]*115[ ]+jmpd \[r8\] \# 32-bit data size not allowed
237 [ ]*116[ ]+jmpd \[rax\] \# 32-bit data size not allowed
238 [ ]*117[ ]+jmpq \[ax\] \# no 16-bit addressing
239 [ ]*[1-9][0-9]*[ ]+mov eax,\[rax\+0x876543210\] \# out of range displacement