Cosmetic changes to tc-i386.[ch] + extend x86 gas testsuite jmp and
[binutils.git] / gas / testsuite / gas / i386 / general.l
blob4e0fb0a3e794523f0214b793195c66cd1b9e620f
1 .*: Assembler messages:
2 .*:10: Warning:.*
3 .*:12: Warning:.*
4 .*:19: Warning:.*
5 .*:22: Warning:.*
6 .*:81: Warning:.*
7 .*:82: Warning:.*
8 .*:83: Warning:.*
9 .*:84: Warning:.*
10 .*:85: Warning:.*
11 .*:86: Warning:.*
12 .*:87: Warning:.*
13 .*:88: Warning:.*
14 .*:89: Warning:.*
15 .*:90: Warning:.*
16 .*:91: Warning:.*
17 .*:92: Warning:.*
18 .*:93: Warning:.*
19 .*:94: Warning:.*
20 .*:95: Warning:.*
21 .*:96: Warning:.*
22 .*:97: Warning:.*
23 .*:98: Warning:.*
24 .*:99: Warning:.*
25 .*:100: Warning:.*
26 .*:101: Warning:.*
27 .*:135: Warning:.*
28 .*:162: Warning:.*
29 .*:164: Warning:.*
30 .*:166: Warning:.*
31 .*:168: Warning:.*
32 .*:170: Warning:.*
33 .*:176: Warning:.*
34 .*:178: Warning:.*
35 .*:180: Warning:.*
36 .*:182: Warning:.*
37 .*:184: Warning:.*
38 .*:191: Warning:.*
39 .*:193: Warning:.*
40 .*:195: Warning:.*
41 .*:197: Warning:.*
42 .*:199: Warning:.*
43 .*:205: Warning:.*
44 .*:207: Warning:.*
45 .*:209: Warning:.*
46 .*:211: Warning:.*
47 .*:213: Warning:.*
48 .*:220: Warning:.*
49 .*:222: Warning:.*
50 .*:224: Warning:.*
51 .*:226: Warning:.*
52 .*:228: Warning:.*
53 .*:234: Warning:.*
54 .*:236: Warning:.*
55 .*:238: Warning:.*
56 .*:240: Warning:.*
57 .*:242: Warning:.*
58    1                            .psize 0
59    2                            .text
60    3                            # test various segment reg insns
61    4 0000 1E                            push    %ds
62    5 0001 1E                            pushl   %ds
63    6 0002 1F                            pop     %ds
64    7 0003 1F                            popl    %ds
65    8 0004 8CD8                          mov     %ds,%eax
66    9 0006 8CD8                          movl    %ds,%eax
67   10 0008 8CD8                          movl    %ds,%ax
68 .*Warning:.*
69   11 000a 8ED8                          mov     %eax,%ds
70   12 000c 8ED8                          movl    %ax,%ds
71 .*Warning:.*
72   13 000e 8ED8                          movl    %eax,%ds
73   14                            
74   15 0010 661E                          pushw   %ds
75   16 0012 661F                          popw    %ds
76   17 0014 668CD8                        mov     %ds,%ax
77   18 0017 668CD8                        movw    %ds,%ax
78   19 001a 668CD8                        movw    %ds,%eax
79 .*Warning:.*
80   20 001d 8ED8                          mov     %ax,%ds
81   21 001f 8ED8                          movw    %ax,%ds
82   22 0021 8ED8                          movw    %eax,%ds
83 .*Warning:.*
84   23                            
85   24                            # test various pushes
86   25 0023 6A0A                          pushl   \$10
87   26 0025 666A0A                        pushw   \$10
88   27 0028 6A0A                          push    \$10
89   28 002a 68E80300 00                   pushl   \$1000
90   29 002f 6668E803                      pushw   \$1000
91   30 0033 68E80300 00                   push    \$1000
92   31 0038 FF355700 0000                 pushl   1f
93   32 003e 66FF3557 000000               pushw   1f
94   33 0045 FF355700 0000                 push    1f
95   34 004b FFB30C00 0000                 push    \(1f-.\)\(%ebx\)
96   35 0051 FF350600 0000                 push    1f-.
97   36                            # these, and others like them should have no operand size prefix
98   37 0057 0F00D1                1:      lldt    %cx
99   38 005a 0F01F0                        lmsw    %ax
100   39                            
101   40                            # Just to make sure these don't become illegal due to over-enthusiastic
102   41                            # register checking
103   42 005d 660FBEF8                      movsbw  %al,%di
104   43 0061 0FBEC8                        movsbl  %al,%ecx
105   44 0064 0FBFC8                        movswl  %ax,%ecx
106   45 0067 660FB6F8                      movzbw  %al,%di
107   46 006b 0FB6C8                        movzbl  %al,%ecx
108   47 006e 0FB7C8                        movzwl  %ax,%ecx
109   48                            
110   49 0071 EC                            in      %dx,%al
111   50 0072 66ED                          in      %dx,%ax
112   51 0074 ED                            in      %dx,%eax
113   52 0075 EC                            in      \(%dx\),%al
114   53 0076 66ED                          in      \(%dx\),%ax
115   54 0078 ED                            in      \(%dx\),%eax
116   55 0079 EC                            inb     %dx,%al
117   56 007a 66ED                          inw     %dx,%ax
118   57 007c ED                            inl     %dx,%eax
119   58 007d EC                            inb     %dx
120   59 007e 66ED                          inw     %dx
121   60 0080 ED                            inl     %dx
122   61 0081 E4FF                          inb     \$255
123   62 0083 66E502                        inw     \$2
124   63 0086 E504                          inl     \$4
125   64 0088 EF                            outl    %eax,%dx
126   65 0089 E62A                          out     %al, \$42
127   66 008b 66E50D                        in      \$13, %ax
128   67                            # These are used in AIX.
129   68 008e 66ED                          inw     \(%dx\)
130   69 0090 66EF                          outw    \(%dx\)
131   70                            
132   71 0092 A4                            movsb
133   72 0093 66A7                          cmpsw
134   73 0095 AF                            scasl
135   74 0096 D7                            xlatb
136   75 0097 2EA5                          movsl   %cs:\(%esi\),%es:\(%edi\)
137   76 0099 0F9303                        setae   \(%ebx\)
138   77 009c 0F9303                        setaeb  \(%ebx\)
139   78 009f 0F93C0                        setae   %al
140   79                            
141   80                            #these should give warnings
142   81 00a2 0C01                          orb     \$1,%ax
143 .*Warning:.*
144   82 00a4 0C01                          orb     \$1,%eax
145 .*Warning:.*
146   83 00a6 80CB01                        orb     \$1,%bx
147 .*Warning:.*
148   84 00a9 80CB01                        orb     \$1,%ebx
149 .*Warning:.*
150   85 00ac D9C1                          fldl    %st\(1\)
151 .*Warning:.*
152   86 00ae DDD2                          fstl    %st\(2\)
153 .*Warning:.*
154   87 00b0 DDDB                          fstpl   %st\(3\)
155 .*Warning:.*
156   88 00b2 D8D4                          fcoml   %st\(4\)
157 .*Warning:.*
158   89 00b4 D8DD                          fcompl  %st\(5\)
159 .*Warning:.*
160   90 00b6 DEC1                          faddp   %st\(1\),%st
161 .*Warning:.*
162   91 00b8 DECA                          fmulp   %st\(2\),%st
163 .*Warning:.*
164   92 00ba DEE3                          fsubp   %st\(3\),%st
165 .*Warning:.*
166   93 00bc DEEC                          fsubrp  %st\(4\),%st
167 .*Warning:.*
168   94 00be DEF5                          fdivp   %st\(5\),%st
169 .*Warning:.*
170   95 00c0 DEFE                          fdivrp  %st\(6\),%st
171 .*Warning:.*
172   96 00c2 DEC1                          fadd
173 .*Warning:.*
174   97 00c4 DEE1                          fsub
175 .*Warning:.*
176   98 00c6 DEC9                          fmul
177 .*Warning:.*
178   99 00c8 DEF1                          fdiv
179 .*Warning:.*
180  100 00ca DEE9                          fsubr
181 .*Warning:.*
182  101 00cc DEF9                          fdivr
183 .*Warning:.*
184  102                            #these should all be legal
185  103 00ce 0FA31556 341200               btl     %edx, 0x123456
186  104 00d5 0FA3D0                        btl     %edx, %eax
187  105 00d8 0C01                          orb     \$1,%al
188  106 00da 80CB01                        orb     \$1,%bl
189  107 00dd A1110000 00                   movl    17,%eax
190  108 00e2 A1110000 00                   mov     17,%eax
191  109 00e7 66ED                          inw     %dx,%ax
192  110 00e9 ED                            inl     %dx,%eax
193  111 00ea 66ED                          inw     \(%dx\),%ax
194  112 00ec ED                            inl     \(%dx\),%eax
195  113 00ed EC                            in      \(%dx\),%al
196  114 00ee 66ED                          in      \(%dx\),%ax
197  115 00f0 ED                            in      \(%dx\),%eax
198  116 00f1 0FB61437                      movzbl  \(%edi,%esi\),%edx
199  117 00f5 0FB6451C                      movzbl  28\(%ebp\),%eax
200  118 00f9 0FB6C0                        movzbl  %al,%eax
201  119 00fc 0FB6F1                        movzbl  %cl,%esi
202  120 00ff 26D7                          xlat    %es:\(%ebx\)
203  121 0101 D7                            xlat
204  122 0102 D7                            xlatb
205  123 0103 DDD8                  1:      fstp    %st\(0\)
206  124 0105 E2FC                          loop    1b
207  125 0107 F6F1                          divb    %cl 
208  126 0109 66F7F1                        divw    %cx 
209  127 010c F7F1                          divl    %ecx
210  128 010e F6F1                          div     %cl
211  129 0110 66F7F1                        div     %cx
212  130 0113 F7F1                          div     %ecx
213  131 0115 F6F1                          div     %cl,%al
214  132 0117 66F7F1                        div     %cx,%ax
215  133 011a F7F1                          div     %ecx,%eax
216  134 011c 8EDE                          mov     %si,%ds
217  135 011e 8EDE                          movl    %si,%ds         # warning here
218 .*Warning:.*
219  136 0120 1E                            pushl   %ds
220  137 0121 1E                            push    %ds
221  138 0122 A0000000 00                   mov     0,%al
222  139 0127 66A10000 0100                 mov     0x10000,%ax
223  140 012d 89C3                          mov     %eax,%ebx
224  141 012f 9C                            pushf
225  142 0130 9C                            pushfl
226  143 0131 669C                          pushfw
227  144 0133 9D                            popf
228  145 0134 9D                            popfl
229  146 0135 669D                          popfw
230  147 0137 89341D00 000000               mov     %esi,\(,%ebx,1\)
231  148 013e 80250000 00007F               andb    \$~0x80,foo
232  149                            
233  150                            #check 16-bit code auto address prefix
234  151                            .code16gcc
235  152 0145 67668D95 00FFFFFF             leal    -256\(%ebp\),%edx
236  153 014d 6788857F FFFFFF               mov     %al,-129\(%ebp\)
237  154 0154 67886580                      mov     %ah,-128\(%ebp\)
238  155 0158 67668D9D 20F9FFFF             leal    -1760\(%ebp\),%ebx
239  156 0160 67668984 248C0000             movl    %eax,140\(%esp\)
240  156      00
241  157                            
242  158                            .extern xxx
243  159 0169 EB98                          jmp     1b
244  160 016b E9FEFF                        jmp     xxx
245  161 016e FF260000                      jmp     \*xxx
246  162 0172 FF260000                      jmp     xxx\(,1\)
247 .*Warning:.*
248  163 0176 66FFE7                        jmp     \*%edi
249  164 0179 66FFE7                        jmp     %edi
250 .*Warning:.*
251  165 017c 67FF27                        jmp     \*\(%edi\)
252  166 017f 67FF27                        jmp     \(%edi\)
253 .*Warning:.*
254  167 0182 67FFAF00 000000               ljmp    \*xxx\(%edi\)
255  168 0189 67FFAF00 000000               ljmp    xxx\(%edi\)
256 .*Warning:.*
257  169 0190 FF2E0000                      ljmp    \*xxx
258  170 0194 FF2E0000                      ljmp    xxx\(,1\)
259 .*Warning:.*
260  171 0198 EA000034 12                   ljmp    \$0x1234,\$xxx
261  172                            
262  173 019d 66E860FF FFFF                 call    1b
263  174 01a3 66E8FCFF FFFF                 call    xxx
264  175 01a9 66FF1600 00                   call    \*xxx
265  176 01ae 66FF1600 00                   call    xxx\(,1\)
266 .*Warning:.*
267  177 01b3 66FFD7                        call    \*%edi
268  178 01b6 66FFD7                        call    %edi
269 .*Warning:.*
270  179 01b9 6766FF17                      call    \*\(%edi\)
271  180 01bd 6766FF17                      call    \(%edi\)
272 .*Warning:.*
273  181 01c1 6766FF9F 00000000             lcall   \*xxx\(%edi\)
274  182 01c9 6766FF9F 00000000             lcall   xxx\(%edi\)
275 .*Warning:.*
276  183 01d1 66FF1E00 00                   lcall   \*xxx
277  184 01d6 66FF1E00 00                   lcall   xxx\(,1\)
278 .*Warning:.*
279  185 01db 669A0000 00003412             lcall   \$0x1234,\$xxx
280  186                            
281  187                            .code16
282  188 01e3 E91DFF                        jmp     1b
283  189 01e6 E9FEFF                        jmp     xxx
284  190 01e9 FF260000                      jmp     \*xxx
285  191 01ed FF260000                      jmp     xxx\(,1\)
286 .*Warning:.*
287  192 01f1 FFE7                          jmp     \*%di
288  193 01f3 FFE7                          jmp     %di
289 .*Warning:.*
290  194 01f5 FF25                          jmp     \*\(%di\)
291  195 01f7 FF25                          jmp     \(%di\)
292 .*Warning:.*
293  196 01f9 FFAD0000                      ljmp    \*xxx\(%di\)
294  197 01fd FFAD0000                      ljmp    xxx\(%di\)
295 .*Warning:.*
296  198 0201 FF2E0000                      ljmp    \*xxx
297  199 0205 FF2E0000                      ljmp    xxx\(,1\)
298 .*Warning:.*
299  200 0209 EA000034 12                   ljmp    \$0x1234,\$xxx
300  201                            
301  202 020e E8F2FE                        call    1b
302  203 0211 E8FEFF                        call    xxx
303  204 0214 FF160000                      call    \*xxx
304  205 0218 FF160000                      call    xxx\(,1\)
305 .*Warning:.*
306  206 021c FFD7                          call    \*%di
307  207 021e FFD7                          call    %di
308 .*Warning:.*
309  208 0220 FF15                          call    \*\(%di\)
310  209 0222 FF15                          call    \(%di\)
311 .*Warning:.*
312  210 0224 FF9D0000                      lcall   \*xxx\(%di\)
313  211 0228 FF9D0000                      lcall   xxx\(%di\)
314 .*Warning:.*
315  212 022c FF1E0000                      lcall   \*xxx
316  213 0230 FF1E0000                      lcall   xxx\(,1\)
317 .*Warning:.*
318  214 0234 9A000034 12                   lcall   \$0x1234,\$xxx
319  215                            
320  216                            .code32
321  217 0239 E9C5FEFF FF                   jmp     1b
322  218 023e E9FCFFFF FF                   jmp     xxx
323  219 0243 FF250000 0000                 jmp     \*xxx
324  220 0249 FF250000 0000                 jmp     xxx\(,1\)
325 .*Warning:.*
326  221 024f FFE7                          jmp     \*%edi
327  222 0251 FFE7                          jmp     %edi
328 .*Warning:.*
329  223 0253 FF27                          jmp     \*\(%edi\)
330  224 0255 FF27                          jmp     \(%edi\)
331 .*Warning:.*
332  225 0257 FF2CBD00 000000               ljmp    \*xxx\(,%edi,4\)
333  226 025e FF2CBD00 000000               ljmp    xxx\(,%edi,4\)
334 .*Warning:.*
335  227 0265 FF2D0000 0000                 ljmp    \*xxx
336  228 026b FF2D0000 0000                 ljmp    xxx\(,1\)
337 .*Warning:.*
338  229 0271 EA000000 003412               ljmp    \$0x1234,\$xxx
339  230                            
340  231 0278 E886FEFF FF                   call    1b
341  232 027d E8FCFFFF FF                   call    xxx
342  233 0282 FF150000 0000                 call    \*xxx
343  234 0288 FF150000 0000                 call    xxx\(,1\)
344 .*Warning:.*
345  235 028e FFD7                          call    \*%edi
346  236 0290 FFD7                          call    %edi
347 .*Warning:.*
348  237 0292 FF17                          call    \*\(%edi\)
349  238 0294 FF17                          call    \(%edi\)
350 .*Warning:.*
351  239 0296 FF1CBD00 000000               lcall   \*xxx\(,%edi,4\)
352  240 029d FF1CBD00 000000               lcall   xxx\(,%edi,4\)
353 .*Warning:.*
354  241 02a4 FF1D0000 0000                 lcall   \*xxx
355  242 02aa FF1D0000 0000                 lcall   xxx\(,1\)
356 .*Warning:.*
357  243 02b0 9A000000 003412               lcall   \$0x1234,\$xxx
358  244                            
359  245                                    # Force a good alignment.
360  246 02b7 00000000 00000000             .p2align        4,0
361  246      00