gdb: Convert language la_word_break_characters field to a method
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / general.l
1 .*: Assembler messages:
2 .*:7: Warning:.*
3 .*:9: Warning:.*
4 .*:11: Warning:.*
5 .*:13: Warning:.*
6 .*:15: Warning:.*
7 .*:21: Warning:.*
8 .*:23: Warning:.*
9 .*:25: Warning:.*
10 .*:27: Warning:.*
11 .*:29: Warning:.*
12 .*:128: Warning:.*
13 .*:129: Warning:.*
14 .*:130: Warning:.*
15 .*:131: Warning:.*
16 .*:132: Warning:.*
17 .*:133: Warning:.*
18 .*:134: Warning:.*
19 .*:139: Warning:.*
20 .*:140: Warning:.*
21 .*:141: Warning:.*
22 .*:142: Warning:.*
23 .*:143: Warning:.*
24 .*:144: Warning:.*
25 .*:224: Warning:.*
26 .*:233: Warning:.*
27 .*:234: Warning:.*
28 .*:238: Warning:.*
29 .*:239: Warning:.*
30 1 .psize 0
31 2 .text
32 3 #test jumps and calls
33 4 0000 EBFE 1: jmp 1b
34 5 0002 E9((FC|F9)FFFF FF|000000 00) jmp xxx
35 6 0007 FF250000 0000 jmp \*xxx
36 7 000d FF250000 0000 jmp xxx\(,1\)
37 .*Warning:.*
38 8 0013 FFE7 jmp \*%edi
39 9 0015 FFE7 jmp %edi
40 .*Warning:.*
41 10 0017 FF27 jmp \*\(%edi\)
42 11 0019 FF27 jmp \(%edi\)
43 .*Warning:.*
44 12 001b FF2CBD00 000000 ljmp \*xxx\(,%edi,4\)
45 13 0022 FF2CBD00 000000 ljmp xxx\(,%edi,4\)
46 .*Warning:.*
47 14 0029 FF2D0000 0000 ljmp \*xxx
48 15 002f FF2D0000 0000 ljmp xxx\(,1\)
49 .*Warning:.*
50 16 0035 EA000000 003412 ljmp \$0x1234,\$xxx
51 17
52 18 003c E8BFFFFF FF call 1b
53 19 0041 E8((FC|BA)FFFF FF|000000 00) call xxx
54 20 0046 FF150000 0000 call \*xxx
55 21 004c FF150000 0000 call xxx\(,1\)
56 .*Warning:.*
57 22 0052 FFD7 call \*%edi
58 23 0054 FFD7 call %edi
59 .*Warning:.*
60 24 0056 FF17 call \*\(%edi\)
61 25 0058 FF17 call \(%edi\)
62 .*Warning:.*
63 26 005a FF1CBD00 000000 lcall \*xxx\(,%edi,4\)
64 27 0061 FF1CBD00 000000 lcall xxx\(,%edi,4\)
65 .*Warning:.*
66 28 0068 FF1D0000 0000 lcall \*xxx
67 29 006e FF1D0000 0000 lcall xxx\(,1\)
68 .*Warning:.*
69 30 0074 9A000000 003412 lcall \$0x1234,\$xxx
70 31
71 32 # test various segment reg insns
72 33 007b 1E push %ds
73 34 007c 1E pushl %ds
74 35 007d 1F pop %ds
75 36 007e 1F popl %ds
76 37 007f 8CD8 mov %ds,%eax
77 38 0081 8CD8 movl %ds,%eax
78 39 0083 8CDB movl %ds,%ebx
79 40 0085 8ED8 mov %eax,%ds
80 41 0087 8EDB movl %ebx,%ds
81 42 0089 8ED8 movl %eax,%ds
82 43
83 44 008b 661E pushw %ds
84 45 008d 661F popw %ds
85 46 008f 668CD8 mov %ds,%ax
86 47 0092 668CD8 movw %ds,%ax
87 48 0095 668CDF movw %ds,%di
88 49 0098 8ED8 mov %ax,%ds
89 50 009a 8ED8 movw %ax,%ds
90 51 009c 8EDF movw %di,%ds
91 52
92 53 # test various pushes
93 54 009e 6A0A pushl \$10
94 55 00a0 666A0A pushw \$10
95 56 00a3 6A0A push \$10
96 57 00a5 68E80300 00 pushl \$1000
97 58 00aa 6668E803 pushw \$1000
98 59 00ae 68E80300 00 push \$1000
99 60 00b3 FF35D200 0000 pushl 1f
100 61 00b9 66FF35D2 000000 pushw 1f
101 62 00c0 FF35D200 0000 push 1f
102 63 00c6 FFB30C00 0000 push \(1f-.\)\(%ebx\)
103 64 00cc FF350600 0000 push 1f-.
104 65 # these, and others like them should have no operand size prefix
105 66 00d2 0F00D1 1: lldt %cx
106 67 00d5 0F01F0 lmsw %ax
107 68
108 69 # Just to make sure these don't become illegal due to over-enthusiastic
109 70 # register checking
110 71 00d8 660FBEF8 movsbw %al,%di
111 72 00dc 0FBEC8 movsbl %al,%ecx
112 73 00df 0FBFC8 movswl %ax,%ecx
113 74 00e2 660FB6F8 movzbw %al,%di
114 75 00e6 0FB6C8 movzbl %al,%ecx
115 76 00e9 0FB7C8 movzwl %ax,%ecx
116 77
117 78 00ec EC in %dx,%al
118 79 00ed 66ED in %dx,%ax
119 80 00ef ED in %dx,%eax
120 81 00f0 EC in \(%dx\),%al
121 82 00f1 66ED in \(%dx\),%ax
122 83 00f3 ED in \(%dx\),%eax
123 84 00f4 EC inb %dx,%al
124 85 00f5 66ED inw %dx,%ax
125 86 00f7 ED inl %dx,%eax
126 87 00f8 EC inb %dx
127 88 00f9 66ED inw %dx
128 89 00fb ED inl %dx
129 90 00fc E4FF inb \$255
130 91 00fe 66E502 inw \$2
131 92 0101 E504 inl \$4
132 93 0103 66E50D in \$13, %ax
133 94 0106 EE out %al,%dx
134 95 0107 66EF out %ax,%dx
135 96 0109 EF out %eax,%dx
136 97 010a EE out %al,\(%dx\)
137 98 010b 66EF out %ax,\(%dx\)
138 99 010d EF out %eax,\(%dx\)
139 100 010e EE outb %al,%dx
140 101 010f 66EF outw %ax,%dx
141 102 0111 EF outl %eax,%dx
142 103 0112 EE outb %dx
143 104 0113 66EF outw %dx
144 105 0115 EF outl %dx
145 106 0116 E6FF outb \$255
146 107 0118 66E702 outw \$2
147 108 011b E704 outl \$4
148 109 011d 66E70D out %ax, \$13
149 110 # These are used in AIX.
150 111 0120 66ED inw \(%dx\)
151 112 0122 66EF outw \(%dx\)
152 113
153 114 0124 A4 movsb
154 115 0125 66A7 cmpsw
155 116 0127 AF scasl
156 117 0128 D7 xlatb
157 118 0129 2EA5 movsl %cs:\(%esi\),%es:\(%edi\)
158 119 012b 0F9303 setae \(%ebx\)
159 120 012e 0F9303 setaeb \(%ebx\)
160 121 0131 0F93C0 setae %al
161 122
162 123 0134 0C01 orb \$1,%al
163 124 0136 0D000100 00 orl \$0x100,%eax
164 125 013b 80CB01 orb \$1,%bl
165 126
166 127 #these should give warnings
167 128 013e D9C1 fldl %st\(1\)
168 .*Warning:.*
169 129 0140 DDD2 fstl %st\(2\)
170 .*Warning:.*
171 130 0142 DDDB fstpl %st\(3\)
172 .*Warning:.*
173 131 0144 D8D4 fcoml %st\(4\)
174 .*Warning:.*
175 132 0146 D8DD fcompl %st\(5\)
176 .*Warning:.*
177 133 0148 DEC1 faddp %st\(1\),%st
178 .*Warning:.*
179 134 014a DECA fmulp %st\(2\),%st
180 .*Warning:.*
181 135 014c D8E3 fsub %st\(3\),%st
182 136 014e D8EC fsubr %st\(4\),%st
183 137 0150 D8F5 fdiv %st\(5\),%st
184 138 0152 D8FE fdivr %st\(6\),%st
185 139 0154 DEC1 fadd
186 .*Warning:.*
187 140 0156 DEE1 fsub
188 .*Warning:.*
189 141 0158 DEC9 fmul
190 .*Warning:.*
191 142 015a DEF1 fdiv
192 .*Warning:.*
193 143 015c DEE9 fsubr
194 .*Warning:.*
195 144 015e DEF9 fdivr
196 .*Warning:.*
197 145 #these should all be legal
198 146 0160 0FA31556 341200 btl %edx, 0x123456
199 147 0167 0FA3D0 btl %edx, %eax
200 148 016a 0C01 orb \$1,%al
201 149 016c 80CB01 orb \$1,%bl
202 150 016f A1110000 00 movl 17,%eax
203 151 0174 A1110000 00 mov 17,%eax
204 152 0179 66ED inw %dx,%ax
205 153 017b ED inl %dx,%eax
206 154 017c 66ED inw \(%dx\),%ax
207 155 017e ED inl \(%dx\),%eax
208 156 017f EC in \(%dx\),%al
209 157 0180 66ED in \(%dx\),%ax
210 158 0182 ED in \(%dx\),%eax
211 159 0183 0FB61437 movzbl \(%edi,%esi\),%edx
212 160 0187 0FB6451C movzbl 28\(%ebp\),%eax
213 161 018b 0FB6C0 movzbl %al,%eax
214 162 018e 0FB6F1 movzbl %cl,%esi
215 163 0191 26D7 xlat %es:\(%ebx\)
216 164 0193 D7 xlat
217 165 0194 D7 xlatb
218 166 0195 DDD8 1: fstp %st\(0\)
219 167 0197 E2FC loop 1b
220 168 0199 F6F1 divb %cl
221 169 019b 66F7F1 divw %cx
222 170 019e F7F1 divl %ecx
223 171 01a0 F6F1 div %cl
224 172 01a2 66F7F1 div %cx
225 173 01a5 F7F1 div %ecx
226 174 01a7 F6F1 div %cl,%al
227 175 01a9 66F7F1 div %cx,%ax
228 176 01ac F7F1 div %ecx,%eax
229 177 01ae 8EDE mov %si,%ds
230 178 01b0 8EDF movl %edi,%ds
231 179 01b2 1E pushl %ds
232 180 01b3 1E push %ds
233 181 01b4 A0000000 00 mov 0,%al
234 182 01b9 66A10000 0100 mov 0x10000,%ax
235 183 01bf 89C3 mov %eax,%ebx
236 184 01c1 9C pushf
237 185 01c2 9C pushfl
238 186 01c3 669C pushfw
239 187 01c5 9D popf
240 188 01c6 9D popfl
241 189 01c7 669D popfw
242 190 01c9 89341D00 000000 mov %esi,\(,%ebx,1\)
243 191 01d0 80250000 00007F andb \$~0x80,foo
244 192
245 193 01d7 6683E0FE and \$0xfffe,%ax
246 194 01db 662500FF and \$0xff00,%ax
247 195 01df 25FEFF00 00 and \$0xfffe,%eax
248 196 01e4 2500FF00 00 and \$0xff00,%eax
249 197 01e9 83E0FE and \$0xfffffffe,%eax
250 198
251 199 .code16
252 200 01ec 83E0FE and \$0xfffe,%ax
253 201 01ef 2500FF and \$0xff00,%ax
254 202 01f2 6625FEFF 0000 and \$0xfffe,%eax
255 203 01f8 662500FF 0000 and \$0xff00,%eax
256 204 01fe 6683E0FE and \$0xfffffffe,%eax
257 205
258 206 #check 16-bit code auto address prefix
259 207 .code16gcc
260 208 0202 67668D95 00FFFFFF leal -256\(%ebp\),%edx
261 209 020a 6788857F FFFFFF mov %al,-129\(%ebp\)
262 210 0211 67886580 mov %ah,-128\(%ebp\)
263 211 0215 67668D9D 20F9FFFF leal -1760\(%ebp\),%ebx
264 212 021d 67668984 248C0000 movl %eax,140\(%esp\)
265 212 00
266 213
267 214 .code32
268 215 # Make sure that we won't remove movzb by accident.
269 216 0226 660FB6F8 movzb %al,%di
270 217 022a 0FB6C8 movzb %al,%ecx
271 218
272 219 .code16gcc
273 [ ]*[1-9][0-9]*[ ]*# Except for IRET use 32-bit implicit stack accesses by default.
274 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+66E8FAFF FFFF[ ]+call \.
275 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+66FF17[ ]+call \*\(%bx\)
276 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+66C80000 00[ ]+enter \$0,\$0
277 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+CF[ ]+iret
278 .*Warning:.*16-bit.*iret.*
279 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+66FF1F[ ]+lcall \*\(%bx\)
280 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+669A0000 00000000[ ]+lcall \$0,\$0
281 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+66C9[ ]+leave
282 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+66CB[ ]+lret
283 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+66CA0000[ ]+lret \$0
284 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+666A00[ ]+push \$0
285 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+66683412 0000[ ]+push \$0x1234
286 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+66FF37[ ]+push \(%bx\)
287 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+6606[ ]+push %es
288 .*Warning:.*32-bit.*push.*
289 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+660FA0[ ]+push %fs
290 .*Warning:.*32-bit.*push.*
291 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+6660[ ]+pusha
292 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+669C[ ]+pushf
293 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+668F07[ ]+pop \(%bx\)
294 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+6607[ ]+pop %es
295 .*Warning:.*32-bit.*pop.*
296 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+660FA1[ ]+pop %fs
297 .*Warning:.*32-bit.*pop.*
298 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+6661[ ]+popa
299 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+669D[ ]+popf
300 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+66C3[ ]+ret
301 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+66C20000[ ]+ret \$0
302 [ ]*[1-9][0-9]*[ ]*
303 [ ]*[1-9][0-9]*[ ]*# However use 16-bit branches not accessing the stack by default.
304 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+77FE[ ]+ja \.
305 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+0F873012[ ]+ja \.\+0x1234
306 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+E3FE[ ]+jcxz \.
307 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+EBFE[ ]+jmp \.
308 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+E93112[ ]+jmp \.\+0x1234
309 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+FF27[ ]+jmp \*\(%bx\)
310 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+FF2F[ ]+ljmp \*\(%bx\)
311 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+EA000000 00[ ]+ljmp \$0,\$0
312 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+E2FE[ ]+loop \.
313 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+0F05[ ]+syscall
314 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+0F34[ ]+sysenter
315 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+0F35[ ]+sysexit
316 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+0F07[ ]+sysret
317 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+C7F8FCFF[ ]+xbegin \.
318 [ ]*[1-9][0-9]*[ ]*
319 [ ]*[1-9][0-9]*[ ]*# Use 16-bit layout by default for fldenv.
320 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+67D920[ ]+fldenv \(%eax\)
321 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+67D920[ ]+fldenvs \(%eax\)
322 [ ]*[1-9][0-9]*[ ]+[0-9a-f]*[ ]+6766D920[ ]+fldenvl \(%eax\)
323 [ ]*[1-9][0-9]*[ ]*
324 [ ]*[1-9][0-9]*[ ]*# Force a good alignment.
325 [ ]*[1-9][0-9]*[ ]+[0-9a-f ]+\.p2align 4,0
326 #pass
This page took 0.038915 seconds and 4 git commands to generate.