x86: Add tests for -n option of x86 assembler
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / inval.s
CommitLineData
252b5132 1 .text
5fe308e1 2 .allow_index_reg
252b5132
RH
3# All the following should be illegal
4 mov (%dx),%al
5 mov (%eax,%esp,2),%al
6 setae %eax
7 pushb %ds
8 popb %ds
9 pushb %al
10 popb %al
11 pushb %ah
12 popb %ah
13 pushb %ax
14 popb %ax
15 pushb %eax
16 popb %eax
17 movb %ds,%ax
18 movb %ds,%eax
19 movb %ax,%ds
20 movb %eax,%ds
21 movdb %eax,%mm0
22 movqb 0,%mm0
23 ldsb 0,%eax
24 setnew 0
25 movdw %eax,%mm0
26 movqw 0,%mm0
27 div %cx,%al
28 div %cl,%ax
29 div %ecx,%al
30 imul 10,%bx,%ecx
31 imul 10,%bx,%al
32 popab
33 stil
34 aaab
35 cwdel
36 cwdw
37 callww 0
38foo: jaw foo
39 jcxzw foo
40 jecxzl foo
41 loopb foo
42 xlatw %es:%bx
43 xlatl %es:%bx
44 intl 2
45 int3b
46 hltb
47 fstb %st(0)
48 fcompll 28(%ebp)
49 fldlw (%eax)
bb8f5920 50 movl $%ebx,%eax
f48ff2ae 51 insertq $4,$2,%xmm2,%ebx
98b528ac
L
52 cvtsi2ssq (%eax),%xmm1
53 cvtsi2sdq (%eax),%xmm1
7d5e4556
L
54 fnstsw %eax
55 fnstsw %al
56 fstsw %eax
57 fstsw %al
98b528ac 58
5c07affc
L
59movnti %ax, (%eax)
60movntiw %ax, (%eax)
61
5fe308e1
L
62 add (%si,%esi), %eax
63 add (%esi,%si), %eax
64 add (%eiz), %eax
65 add (%eax), %eiz
66
98b528ac
L
67 .intel_syntax noprefix
68 cvtsi2ss xmm1,QWORD PTR [eax]
69 cvtsi2sd xmm1,QWORD PTR [eax]
70 cvtsi2ssq xmm1,QWORD PTR [eax]
71 cvtsi2sdq xmm1,QWORD PTR [eax]
582d5edd
L
72 movq xmm1, XMMWORD PTR [esp]
73 movq xmm1, DWORD PTR [esp]
74 movq xmm1, WORD PTR [esp]
75 movq xmm1, BYTE PTR [esp]
76 movq XMMWORD PTR [esp],xmm1
77 movq DWORD PTR [esp],xmm1
78 movq WORD PTR [esp],xmm1
79 movq BYTE PTR [esp],xmm1
7d5e4556
L
80 fnstsw eax
81 fnstsw al
82 fstsw eax
83 fstsw al
5c07affc
L
84
85movsx ax, [eax]
86movsx eax, [eax]
87movzx ax, [eax]
88movzx eax, [eax]
89
90movnti word ptr [eax], ax
b76bc5d5
JB
91
92 shl [eax], 1
93 rol [ecx], 2
94 rcl [edx], cl
This page took 1.225785 seconds and 4 git commands to generate.