Initial revision
[binutils.git] / gas / testsuite / gas / i386 / general.l
bloba4034471ea59870210170d6cb363116ce2ea4616
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    1                            .psize 0
29    2                            .text
30    3                            # test various segment reg insns
31    4 0000 1E                            push    %ds
32    5 0001 1E                            pushl   %ds
33    6 0002 1F                            pop     %ds
34    7 0003 1F                            popl    %ds
35    8 0004 8CD8                          mov     %ds,%eax
36    9 0006 8CD8                          movl    %ds,%eax
37   10 0008 8CD8                          movl    %ds,%ax
38 .*Warning:.*
39   11 000a 8ED8                          mov     %eax,%ds
40   12 000c 8ED8                          movl    %ax,%ds
41 .*Warning:.*
42   13 000e 8ED8                          movl    %eax,%ds
43   14                            
44   15 0010 661E                          pushw   %ds
45   16 0012 661F                          popw    %ds
46   17 0014 668CD8                        mov     %ds,%ax
47   18 0017 668CD8                        movw    %ds,%ax
48   19 001a 668CD8                        movw    %ds,%eax
49 .*Warning:.*
50   20 001d 8ED8                          mov     %ax,%ds
51   21 001f 8ED8                          movw    %ax,%ds
52   22 0021 8ED8                          movw    %eax,%ds
53 .*Warning:.*
54   23                            
55   24                            # test various pushes
56   25 0023 6A0A                          pushl   \$10
57   26 0025 666A0A                        pushw   \$10
58   27 0028 6A0A                          push    \$10
59   28 002a 68E80300 00                   pushl   \$1000
60   29 002f 6668E803                      pushw   \$1000
61   30 0033 68E80300 00                   push    \$1000
62   31 0038 FF355700 0000                 pushl   1f
63   32 003e 66FF3557 000000               pushw   1f
64   33 0045 FF355700 0000                 push    1f
65   34 004b FFB30C00 0000                 push    \(1f-.\)\(%ebx\)
66   35 0051 FF350600 0000                 push    1f-.
67   36                            # these, and others like them should have no operand size prefix
68   37 0057 0F00D1                1:      lldt    %cx
69   38 005a 0F01F0                        lmsw    %ax
70   39                            
71   40                            # Just to make sure these don't become illegal due to over-enthusiastic
72   41                            # register checking
73   42 005d 660FBEF8                      movsbw  %al,%di
74   43 0061 0FBEC8                        movsbl  %al,%ecx
75   44 0064 0FBFC8                        movswl  %ax,%ecx
76   45 0067 660FB6F8                      movzbw  %al,%di
77   46 006b 0FB6C8                        movzbl  %al,%ecx
78   47 006e 0FB7C8                        movzwl  %ax,%ecx
79   48                            
80   49 0071 EC                            in      %dx,%al
81   50 0072 66ED                          in      %dx,%ax
82   51 0074 ED                            in      %dx,%eax
83   52 0075 EC                            in      \(%dx\),%al
84   53 0076 66ED                          in      \(%dx\),%ax
85   54 0078 ED                            in      \(%dx\),%eax
86   55 0079 EC                            inb     %dx,%al
87   56 007a 66ED                          inw     %dx,%ax
88   57 007c ED                            inl     %dx,%eax
89   58 007d EC                            inb     %dx
90   59 007e 66ED                          inw     %dx
91   60 0080 ED                            inl     %dx
92   61 0081 E4FF                          inb     \$255
93   62 0083 66E502                        inw     \$2
94   63 0086 E504                          inl     \$4
95   64 0088 EF                            outl    %eax,%dx
96   65 0089 E62A                          out     %al, \$42
97   66 008b 66E50D                        in      \$13, %ax
98   67                            # These are used in AIX.
99   68 008e 66ED                          inw     \(%dx\)
100   69 0090 66EF                          outw    \(%dx\)
101   70                            
102   71 0092 A4                            movsb
103   72 0093 66A7                          cmpsw
104   73 0095 AF                            scasl
105   74 0096 D7                            xlatb
106   75 0097 2EA5                          movsl   %cs:\(%esi\),%es:\(%edi\)
107   76 0099 0F9303                        setae   \(%ebx\)
108   77 009c 0F9303                        setaeb  \(%ebx\)
109   78 009f 0F93C0                        setae   %al
110   79                            
111   80                            #these should give warnings
112   81 00a2 0C01                          orb     \$1,%ax
113 .*Warning:.*
114   82 00a4 0C01                          orb     \$1,%eax
115 .*Warning:.*
116   83 00a6 80CB01                        orb     \$1,%bx
117 .*Warning:.*
118   84 00a9 80CB01                        orb     \$1,%ebx
119 .*Warning:.*
120   85 00ac D9C1                          fldl    %st\(1\)
121 .*Warning:.*
122   86 00ae DDD2                          fstl    %st\(2\)
123 .*Warning:.*
124   87 00b0 DDDB                          fstpl   %st\(3\)
125 .*Warning:.*
126   88 00b2 D8D4                          fcoml   %st\(4\)
127 .*Warning:.*
128   89 00b4 D8DD                          fcompl  %st\(5\)
129 .*Warning:.*
130   90 00b6 DEC1                          faddp   %st\(1\),%st
131 .*Warning:.*
132   91 00b8 DECA                          fmulp   %st\(2\),%st
133 .*Warning:.*
134   92 00ba DEE3                          fsubp   %st\(3\),%st
135 .*Warning:.*
136   93 00bc DEEC                          fsubrp  %st\(4\),%st
137 .*Warning:.*
138   94 00be DEF5                          fdivp   %st\(5\),%st
139 .*Warning:.*
140   95 00c0 DEFE                          fdivrp  %st\(6\),%st
141 .*Warning:.*
142   96 00c2 DEC1                          fadd
143 .*Warning:.*
144   97 00c4 DEE1                          fsub
145 .*Warning:.*
146   98 00c6 DEC9                          fmul
147 .*Warning:.*
148   99 00c8 DEF1                          fdiv
149 .*Warning:.*
150  100 00ca DEE9                          fsubr
151 .*Warning:.*
152  101 00cc DEF9                          fdivr
153 .*Warning:.*
154  102                            #these should all be legal
155  103 00ce 0FA31556 341200               btl     %edx, 0x123456
156  104 00d5 0FA3D0                        btl     %edx, %eax
157  105 00d8 0C01                          orb     \$1,%al
158  106 00da 80CB01                        orb     \$1,%bl
159  107 00dd A1110000 00                   movl    17,%eax
160  108 00e2 A1110000 00                   mov     17,%eax
161  109 00e7 66ED                          inw     %dx,%ax
162  110 00e9 ED                            inl     %dx,%eax
163  111 00ea 66ED                          inw     \(%dx\),%ax
164  112 00ec ED                            inl     \(%dx\),%eax
165  113 00ed EC                            in      \(%dx\),%al
166  114 00ee 66ED                          in      \(%dx\),%ax
167  115 00f0 ED                            in      \(%dx\),%eax
168  116 00f1 0FB61437                      movzbl  \(%edi,%esi\),%edx
169  117 00f5 0FB6451C                      movzbl  28\(%ebp\),%eax
170  118 00f9 0FB6C0                        movzbl  %al,%eax
171  119 00fc 0FB6F1                        movzbl  %cl,%esi
172  120 00ff 26D7                          xlat    %es:\(%ebx\)
173  121 0101 D7                            xlat
174  122 0102 D7                            xlatb
175  123 0103 DDD8                  1:      fstp    %st\(0\)
176  124 0105 E2FC                          loop    1b
177  125 0107 F6F1                          divb    %cl 
178  126 0109 66F7F1                        divw    %cx 
179  127 010c F7F1                          divl    %ecx
180  128 010e F6F1                          div     %cl
181  129 0110 66F7F1                        div     %cx
182  130 0113 F7F1                          div     %ecx
183  131 0115 F6F1                          div     %cl,%al
184  132 0117 66F7F1                        div     %cx,%ax
185  133 011a F7F1                          div     %ecx,%eax
186  134 011c 8EDE                          mov     %si,%ds
187  135 011e 8EDE                          movl    %si,%ds         # warning here
188 .*Warning:.*
189  136 0120 1E                            pushl   %ds
190  137 0121 1E                            push    %ds
191  138 0122 A0000000 00                   mov     0,%al
192  139 0127 66A10000 0100                 mov     0x10000,%ax
193  140 012d 89C3                          mov     %eax,%ebx
194  141 012f 9C                            pushf
195  142 0130 9C                            pushfl
196  143 0131 669C                          pushfw
197  144 0133 9D                            popf
198  145 0134 9D                            popfl
199  146 0135 669D                          popfw
200  147 0137 89341D00 000000               mov     %esi,\(,%ebx,1\)
201  148 013e 80250000 00007F               andb    \$~0x80,foo
202  149                            
203  150                                    # Force a good alignment.
204  151 0145 0000                          .word   0
205  152 0147 00                            .byte   0