x86: replace adhoc (partly wrong) ambiguous operand checking for MOVSX/MOVZX
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / ilp32 / x86-64.d
CommitLineData
351f65ca
L
1#as: -J
2#objdump: -dw
3#name: x86-64 (ILP32)
4
5.*: +file format .*
6
7Disassembly of section .text:
8
90+ <.*>:
10[ ]*[a-f0-9]+: 01 ca add %ecx,%edx
11[ ]*[a-f0-9]+: 44 01 ca add %r9d,%edx
12[ ]*[a-f0-9]+: 41 01 ca add %ecx,%r10d
13[ ]*[a-f0-9]+: 48 01 ca add %rcx,%rdx
14[ ]*[a-f0-9]+: 4d 01 ca add %r9,%r10
15[ ]*[a-f0-9]+: 41 01 c0 add %eax,%r8d
16[ ]*[a-f0-9]+: 66 41 01 c0 add %ax,%r8w
17[ ]*[a-f0-9]+: 49 01 c0 add %rax,%r8
18[ ]*[a-f0-9]+: 05 11 22 33 44 add \$0x44332211,%eax
19[ ]*[a-f0-9]+: 48 05 11 22 33 f4 add \$0xfffffffff4332211,%rax
20[ ]*[a-f0-9]+: 66 05 33 44 add \$0x4433,%ax
21[ ]*[a-f0-9]+: 48 05 11 22 33 44 add \$0x44332211,%rax
22[ ]*[a-f0-9]+: 00 ca add %cl,%dl
23[ ]*[a-f0-9]+: 00 f7 add %dh,%bh
24[ ]*[a-f0-9]+: 40 00 f7 add %sil,%dil
25[ ]*[a-f0-9]+: 41 00 f7 add %sil,%r15b
26[ ]*[a-f0-9]+: 44 00 f7 add %r14b,%dil
27[ ]*[a-f0-9]+: 45 00 f7 add %r14b,%r15b
28[ ]*[a-f0-9]+: 50 push %rax
29[ ]*[a-f0-9]+: 41 50 push %r8
30[ ]*[a-f0-9]+: 41 59 pop %r9
31[ ]*[a-f0-9]+: 04 11 add \$0x11,%al
32[ ]*[a-f0-9]+: 80 c4 11 add \$0x11,%ah
33[ ]*[a-f0-9]+: 40 80 c4 11 add \$0x11,%spl
34[ ]*[a-f0-9]+: 41 80 c0 11 add \$0x11,%r8b
35[ ]*[a-f0-9]+: 41 80 c4 11 add \$0x11,%r12b
36[ ]*[a-f0-9]+: 0f 20 c0 mov %cr0,%rax
37[ ]*[a-f0-9]+: 41 0f 20 c0 mov %cr0,%r8
38[ ]*[a-f0-9]+: 44 0f 20 c0 mov %cr8,%rax
39[ ]*[a-f0-9]+: 44 0f 22 c0 mov %rax,%cr8
40[ ]*[a-f0-9]+: f3 48 a5 rep movsq %ds:\(%rsi\),%es:\(%rdi\)
41[ ]*[a-f0-9]+: 66 f3 a5 rep movsw %ds:\(%rsi\),%es:\(%rdi\)
42[ ]*[a-f0-9]+: f3 48 a5 rep movsq %ds:\(%rsi\),%es:\(%rdi\)
43[ ]*[a-f0-9]+: b0 11 mov \$0x11,%al
44[ ]*[a-f0-9]+: b4 11 mov \$0x11,%ah
45[ ]*[a-f0-9]+: 40 b4 11 mov \$0x11,%spl
46[ ]*[a-f0-9]+: 41 b4 11 mov \$0x11,%r12b
47[ ]*[a-f0-9]+: b8 44 33 22 11 mov \$0x11223344,%eax
48[ ]*[a-f0-9]+: 41 b8 44 33 22 11 mov \$0x11223344,%r8d
49[ ]*[a-f0-9]+: 48 b8 88 77 66 55 44 33 22 11 movabs \$0x1122334455667788,%rax
50[ ]*[a-f0-9]+: 49 b8 88 77 66 55 44 33 22 11 movabs \$0x1122334455667788,%r8
51[ ]*[a-f0-9]+: 03 00 add \(%rax\),%eax
52[ ]*[a-f0-9]+: 41 03 00 add \(%r8\),%eax
53[ ]*[a-f0-9]+: 45 03 00 add \(%r8\),%r8d
54[ ]*[a-f0-9]+: 49 03 00 add \(%r8\),%rax
7f56bc95 55[ ]*[a-f0-9]+: 03 05 22 22 22 22 add 0x22222222\(%rip\),%eax # 222222c7 <foo\+0x222220d6>
351f65ca
L
56[ ]*[a-f0-9]+: 03 45 00 add 0x0\(%rbp\),%eax
57[ ]*[a-f0-9]+: 03 04 25 22 22 22 22 add 0x22222222,%eax
58[ ]*[a-f0-9]+: 41 03 45 00 add 0x0\(%r13\),%eax
59[ ]*[a-f0-9]+: 03 04 80 add \(%rax,%rax,4\),%eax
60[ ]*[a-f0-9]+: 41 03 04 80 add \(%r8,%rax,4\),%eax
61[ ]*[a-f0-9]+: 45 03 04 80 add \(%r8,%rax,4\),%r8d
62[ ]*[a-f0-9]+: 43 03 04 80 add \(%r8,%r8,4\),%eax
63[ ]*[a-f0-9]+: 46 01 04 81 add %r8d,\(%rcx,%r8,4\)
64[ ]*[a-f0-9]+: 03 14 c0 add \(%rax,%rax,8\),%edx
65[ ]*[a-f0-9]+: 03 14 c8 add \(%rax,%rcx,8\),%edx
66[ ]*[a-f0-9]+: 03 14 d0 add \(%rax,%rdx,8\),%edx
67[ ]*[a-f0-9]+: 03 14 d8 add \(%rax,%rbx,8\),%edx
68[ ]*[a-f0-9]+: 03 10 add \(%rax\),%edx
69[ ]*[a-f0-9]+: 03 14 e8 add \(%rax,%rbp,8\),%edx
70[ ]*[a-f0-9]+: 03 14 f0 add \(%rax,%rsi,8\),%edx
71[ ]*[a-f0-9]+: 03 14 f8 add \(%rax,%rdi,8\),%edx
72[ ]*[a-f0-9]+: 42 03 14 c0 add \(%rax,%r8,8\),%edx
73[ ]*[a-f0-9]+: 42 03 14 c8 add \(%rax,%r9,8\),%edx
74[ ]*[a-f0-9]+: 42 03 14 d0 add \(%rax,%r10,8\),%edx
75[ ]*[a-f0-9]+: 42 03 14 d8 add \(%rax,%r11,8\),%edx
76[ ]*[a-f0-9]+: 42 03 14 e0 add \(%rax,%r12,8\),%edx
77[ ]*[a-f0-9]+: 42 03 14 e8 add \(%rax,%r13,8\),%edx
78[ ]*[a-f0-9]+: 42 03 14 f0 add \(%rax,%r14,8\),%edx
79[ ]*[a-f0-9]+: 42 03 14 f8 add \(%rax,%r15,8\),%edx
80[ ]*[a-f0-9]+: 83 c1 11 add \$0x11,%ecx
81[ ]*[a-f0-9]+: 83 00 11 addl \$0x11,\(%rax\)
82[ ]*[a-f0-9]+: 48 83 00 11 addq \$0x11,\(%rax\)
83[ ]*[a-f0-9]+: 41 83 00 11 addl \$0x11,\(%r8\)
84[ ]*[a-f0-9]+: 83 04 81 11 addl \$0x11,\(%rcx,%rax,4\)
85[ ]*[a-f0-9]+: 41 83 04 81 11 addl \$0x11,\(%r9,%rax,4\)
86[ ]*[a-f0-9]+: 42 83 04 81 11 addl \$0x11,\(%rcx,%r8,4\)
7f56bc95
L
87[ ]*[a-f0-9]+: 83 05 22 22 22 22 33 addl \$0x33,0x22222222\(%rip\) # 22222342 <foo\+0x22222151>
88[ ]*[a-f0-9]+: 48 83 05 22 22 22 22 33 addq \$0x33,0x22222222\(%rip\) # 2222234a <foo\+0x22222159>
89[ ]*[a-f0-9]+: 81 05 22 22 22 22 33 33 33 33 addl \$0x33333333,0x22222222\(%rip\) # 22222354 <foo\+0x22222163>
90[ ]*[a-f0-9]+: 48 81 05 22 22 22 22 33 33 33 33 addq \$0x33333333,0x22222222\(%rip\) # 2222235f <foo\+0x2222216e>
351f65ca
L
91[ ]*[a-f0-9]+: 83 04 c5 22 22 22 22 33 addl \$0x33,0x22222222\(,%rax,8\)
92[ ]*[a-f0-9]+: 83 80 22 22 22 22 33 addl \$0x33,0x22222222\(%rax\)
93[ ]*[a-f0-9]+: 83 80 22 22 22 22 33 addl \$0x33,0x22222222\(%rax\)
94[ ]*[a-f0-9]+: 41 83 04 e8 33 addl \$0x33,\(%r8,%rbp,8\)
95[ ]*[a-f0-9]+: 83 04 25 22 22 22 22 33 addl \$0x33,0x22222222
96[ ]*[a-f0-9]+: a0 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%al
97[ ]*[a-f0-9]+: a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%eax
98[ ]*[a-f0-9]+: a2 11 22 33 44 55 66 77 88 movabs %al,0x8877665544332211
99[ ]*[a-f0-9]+: a3 11 22 33 44 55 66 77 88 movabs %eax,0x8877665544332211
100[ ]*[a-f0-9]+: 48 a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%rax
101[ ]*[a-f0-9]+: 48 a3 11 22 33 44 55 66 77 88 movabs %rax,0x8877665544332211
102[ ]*[a-f0-9]+: 48 99 cqto
103[ ]*[a-f0-9]+: 48 98 cltq
104[ ]*[a-f0-9]+: 48 63 c0 movslq %eax,%rax
105[ ]*[a-f0-9]+: 48 0f bf c0 movswq %ax,%rax
106[ ]*[a-f0-9]+: 48 0f be c0 movsbq %al,%rax
107
1080+1a7 <bar>:
109[ ]*[a-f0-9]+: b0 00 mov \$0x0,%al
110[ ]*[a-f0-9]+: 66 b8 00 00 mov \$0x0,%ax
111[ ]*[a-f0-9]+: b8 00 00 00 00 mov \$0x0,%eax
112[ ]*[a-f0-9]+: 48 c7 c0 00 00 00 00 mov \$0x0,%rax
351f65ca
L
113[ ]*[a-f0-9]+: 8b 04 25 00 00 00 00 mov 0x0,%eax
114[ ]*[a-f0-9]+: 8b 80 00 00 00 00 mov 0x0\(%rax\),%eax
7f56bc95 115[ ]*[a-f0-9]+: 8b 05 00 00 00 00 mov 0x0\(%rip\),%eax # 1cc <bar\+0x25>
351f65ca
L
116[ ]*[a-f0-9]+: b0 00 mov \$0x0,%al
117[ ]*[a-f0-9]+: 66 b8 00 00 mov \$0x0,%ax
118[ ]*[a-f0-9]+: b8 00 00 00 00 mov \$0x0,%eax
119[ ]*[a-f0-9]+: 48 c7 c0 00 00 00 00 mov \$0x0,%rax
351f65ca
L
120[ ]*[a-f0-9]+: 8b 04 25 00 00 00 00 mov 0x0,%eax
121[ ]*[a-f0-9]+: 8b 80 00 00 00 00 mov 0x0\(%rax\),%eax
7f56bc95 122[ ]*[a-f0-9]+: 8b 05 00 00 00 00 mov 0x0\(%rip\),%eax # 1f1 <foo>
351f65ca 123
7f56bc95 1240+1f1 <foo>:
351f65ca
L
125[ ]*[a-f0-9]+: a0 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%al
126[ ]*[a-f0-9]+: 66 a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%ax
127[ ]*[a-f0-9]+: a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%eax
128[ ]*[a-f0-9]+: 48 a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%rax
129[ ]*[a-f0-9]+: a2 11 22 33 44 55 66 77 88 movabs %al,0x8877665544332211
130[ ]*[a-f0-9]+: 66 a3 11 22 33 44 55 66 77 88 movabs %ax,0x8877665544332211
131[ ]*[a-f0-9]+: a3 11 22 33 44 55 66 77 88 movabs %eax,0x8877665544332211
132[ ]*[a-f0-9]+: 48 a3 11 22 33 44 55 66 77 88 movabs %rax,0x8877665544332211
133[ ]*[a-f0-9]+: a0 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%al
134[ ]*[a-f0-9]+: 66 a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%ax
135[ ]*[a-f0-9]+: a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%eax
136[ ]*[a-f0-9]+: 48 a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%rax
137[ ]*[a-f0-9]+: a2 11 22 33 44 55 66 77 88 movabs %al,0x8877665544332211
138[ ]*[a-f0-9]+: 66 a3 11 22 33 44 55 66 77 88 movabs %ax,0x8877665544332211
139[ ]*[a-f0-9]+: a3 11 22 33 44 55 66 77 88 movabs %eax,0x8877665544332211
140[ ]*[a-f0-9]+: 48 a3 11 22 33 44 55 66 77 88 movabs %rax,0x8877665544332211
141[ ]*[a-f0-9]+: 8a 04 25 11 22 33 ff mov 0xffffffffff332211,%al
142[ ]*[a-f0-9]+: 66 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%ax
143[ ]*[a-f0-9]+: 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%eax
144[ ]*[a-f0-9]+: 48 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%rax
145[ ]*[a-f0-9]+: 88 04 25 11 22 33 ff mov %al,0xffffffffff332211
146[ ]*[a-f0-9]+: 66 89 04 25 11 22 33 ff mov %ax,0xffffffffff332211
147[ ]*[a-f0-9]+: 89 04 25 11 22 33 ff mov %eax,0xffffffffff332211
148[ ]*[a-f0-9]+: 48 89 04 25 11 22 33 ff mov %rax,0xffffffffff332211
149[ ]*[a-f0-9]+: 8a 04 25 11 22 33 ff mov 0xffffffffff332211,%al
150[ ]*[a-f0-9]+: 66 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%ax
151[ ]*[a-f0-9]+: 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%eax
152[ ]*[a-f0-9]+: 48 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%rax
153[ ]*[a-f0-9]+: 88 04 25 11 22 33 ff mov %al,0xffffffffff332211
154[ ]*[a-f0-9]+: 66 89 04 25 11 22 33 ff mov %ax,0xffffffffff332211
155[ ]*[a-f0-9]+: 89 04 25 11 22 33 ff mov %eax,0xffffffffff332211
156[ ]*[a-f0-9]+: 48 89 04 25 11 22 33 ff mov %rax,0xffffffffff332211
157[ ]*[a-f0-9]+: 48 0f c7 08 cmpxchg16b \(%rax\)
158[ ]*[a-f0-9]+: 48 0f c7 08 cmpxchg16b \(%rax\)
159[ ]*[a-f0-9]+: 66 0f be f0 movsbw %al,%si
160[ ]*[a-f0-9]+: 0f be f0 movsbl %al,%esi
161[ ]*[a-f0-9]+: 48 0f be f0 movsbq %al,%rsi
162[ ]*[a-f0-9]+: 0f bf f0 movswl %ax,%esi
163[ ]*[a-f0-9]+: 48 0f bf f0 movswq %ax,%rsi
164[ ]*[a-f0-9]+: 48 63 f0 movslq %eax,%rsi
351f65ca
L
165[ ]*[a-f0-9]+: 66 0f be 10 movsbw \(%rax\),%dx
166[ ]*[a-f0-9]+: 0f be 10 movsbl \(%rax\),%edx
167[ ]*[a-f0-9]+: 48 0f be 10 movsbq \(%rax\),%rdx
168[ ]*[a-f0-9]+: 66 0f be 10 movsbw \(%rax\),%dx
169[ ]*[a-f0-9]+: 0f bf 10 movswl \(%rax\),%edx
170[ ]*[a-f0-9]+: 48 0f bf 10 movswq \(%rax\),%rdx
171[ ]*[a-f0-9]+: 66 0f b6 f0 movzbw %al,%si
172[ ]*[a-f0-9]+: 0f b6 f0 movzbl %al,%esi
173[ ]*[a-f0-9]+: 48 0f b6 f0 movzbq %al,%rsi
174[ ]*[a-f0-9]+: 0f b7 f0 movzwl %ax,%esi
175[ ]*[a-f0-9]+: 48 0f b7 f0 movzwq %ax,%rsi
351f65ca
L
176[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%rax\),%dx
177[ ]*[a-f0-9]+: 0f b6 10 movzbl \(%rax\),%edx
178[ ]*[a-f0-9]+: 48 0f b6 10 movzbq \(%rax\),%rdx
179[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%rax\),%dx
180[ ]*[a-f0-9]+: 0f b6 10 movzbl \(%rax\),%edx
181[ ]*[a-f0-9]+: 48 0f b6 10 movzbq \(%rax\),%rdx
182[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%rax\),%dx
183[ ]*[a-f0-9]+: 0f b7 10 movzwl \(%rax\),%edx
184[ ]*[a-f0-9]+: 48 0f b7 10 movzwq \(%rax\),%rdx
185[ ]*[a-f0-9]+: 66 0f be f0 movsbw %al,%si
186[ ]*[a-f0-9]+: 0f be f0 movsbl %al,%esi
187[ ]*[a-f0-9]+: 48 0f be f0 movsbq %al,%rsi
188[ ]*[a-f0-9]+: 0f bf f0 movswl %ax,%esi
189[ ]*[a-f0-9]+: 48 0f bf f0 movswq %ax,%rsi
190[ ]*[a-f0-9]+: 48 63 f0 movslq %eax,%rsi
191[ ]*[a-f0-9]+: 0f be 10 movsbl \(%rax\),%edx
192[ ]*[a-f0-9]+: 48 0f be 10 movsbq \(%rax\),%rdx
193[ ]*[a-f0-9]+: 66 0f be 10 movsbw \(%rax\),%dx
194[ ]*[a-f0-9]+: 0f bf 10 movswl \(%rax\),%edx
195[ ]*[a-f0-9]+: 48 0f bf 10 movswq \(%rax\),%rdx
196[ ]*[a-f0-9]+: 66 0f b6 f0 movzbw %al,%si
197[ ]*[a-f0-9]+: 0f b6 f0 movzbl %al,%esi
198[ ]*[a-f0-9]+: 48 0f b6 f0 movzbq %al,%rsi
199[ ]*[a-f0-9]+: 0f b7 f0 movzwl %ax,%esi
200[ ]*[a-f0-9]+: 48 0f b7 f0 movzwq %ax,%rsi
201[ ]*[a-f0-9]+: 0f b6 10 movzbl \(%rax\),%edx
202[ ]*[a-f0-9]+: 48 0f b6 10 movzbq \(%rax\),%rdx
203[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%rax\),%dx
204[ ]*[a-f0-9]+: 0f b7 10 movzwl \(%rax\),%edx
205[ ]*[a-f0-9]+: 48 0f b7 10 movzwq \(%rax\),%rdx
206[ ]*[a-f0-9]+: f3 0f 7e 0c 24 movq \(%rsp\),%xmm1
207[ ]*[a-f0-9]+: f3 0f 7e 0c 24 movq \(%rsp\),%xmm1
208[ ]*[a-f0-9]+: 66 0f d6 0c 24 movq %xmm1,\(%rsp\)
209[ ]*[a-f0-9]+: 66 0f d6 0c 24 movq %xmm1,\(%rsp\)
210[ ]*[a-f0-9]+: df e0 fnstsw %ax
211[ ]*[a-f0-9]+: df e0 fnstsw %ax
212[ ]*[a-f0-9]+: 9b df e0 fstsw %ax
213[ ]*[a-f0-9]+: 9b df e0 fstsw %ax
214[ ]*[a-f0-9]+: df e0 fnstsw %ax
215[ ]*[a-f0-9]+: df e0 fnstsw %ax
216[ ]*[a-f0-9]+: 9b df e0 fstsw %ax
217[ ]*[a-f0-9]+: 9b df e0 fstsw %ax
218[ ]*[a-f0-9]+: 66 0f be 00 movsbw \(%rax\),%ax
351f65ca
L
219[ ]*[a-f0-9]+: 66 0f be 10 movsbw \(%rax\),%dx
220[ ]*[a-f0-9]+: 0f be 10 movsbl \(%rax\),%edx
221[ ]*[a-f0-9]+: 48 0f be 10 movsbq \(%rax\),%rdx
222[ ]*[a-f0-9]+: 0f bf 10 movswl \(%rax\),%edx
223[ ]*[a-f0-9]+: 48 0f bf 10 movswq \(%rax\),%rdx
224[ ]*[a-f0-9]+: 48 63 10 movslq \(%rax\),%rdx
225[ ]*[a-f0-9]+: 48 63 00 movslq \(%rax\),%rax
226[ ]*[a-f0-9]+: 66 0f b6 00 movzbw \(%rax\),%ax
351f65ca
L
227[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%rax\),%dx
228[ ]*[a-f0-9]+: 0f b6 10 movzbl \(%rax\),%edx
229[ ]*[a-f0-9]+: 48 0f b6 10 movzbq \(%rax\),%rdx
230[ ]*[a-f0-9]+: 0f b7 10 movzwl \(%rax\),%edx
231[ ]*[a-f0-9]+: 48 0f b7 10 movzwq \(%rax\),%rdx
232[ ]*[a-f0-9]+: 0f c3 00 movnti %eax,\(%rax\)
233[ ]*[a-f0-9]+: 0f c3 00 movnti %eax,\(%rax\)
234[ ]*[a-f0-9]+: 48 0f c3 00 movnti %rax,\(%rax\)
235[ ]*[a-f0-9]+: 48 0f c3 00 movnti %rax,\(%rax\)
236[ ]*[a-f0-9]+: 66 0f be 00 movsbw \(%rax\),%ax
237[ ]*[a-f0-9]+: 0f be 00 movsbl \(%rax\),%eax
238[ ]*[a-f0-9]+: 0f bf 00 movswl \(%rax\),%eax
239[ ]*[a-f0-9]+: 48 0f bf 00 movswq \(%rax\),%rax
240[ ]*[a-f0-9]+: 48 63 00 movslq \(%rax\),%rax
241[ ]*[a-f0-9]+: 48 63 00 movslq \(%rax\),%rax
242[ ]*[a-f0-9]+: 66 0f b6 00 movzbw \(%rax\),%ax
243[ ]*[a-f0-9]+: 0f b6 00 movzbl \(%rax\),%eax
244[ ]*[a-f0-9]+: 0f b7 00 movzwl \(%rax\),%eax
245[ ]*[a-f0-9]+: 48 0f b7 00 movzwq \(%rax\),%rax
246[ ]*[a-f0-9]+: 0f c3 00 movnti %eax,\(%rax\)
247[ ]*[a-f0-9]+: 48 0f c3 00 movnti %rax,\(%rax\)
248#pass
This page took 0.445573 seconds and 4 git commands to generate.