x86: Add tests for -n option of x86 assembler
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / inval.s
index 1571a2f4fa7df9dca08cd6e898383c3d84a73511..35d99cd65b7265920463bf4df7ff834f978015a8 100644 (file)
@@ -1,4 +1,5 @@
        .text
+       .allow_index_reg
 # All the following should be illegal
        mov     (%dx),%al
        mov     (%eax,%esp,2),%al
@@ -47,3 +48,47 @@ foo: jaw     foo
        fcompll 28(%ebp)
        fldlw   (%eax)
        movl    $%ebx,%eax
+       insertq $4,$2,%xmm2,%ebx
+       cvtsi2ssq (%eax),%xmm1
+       cvtsi2sdq (%eax),%xmm1
+       fnstsw %eax
+       fnstsw %al
+       fstsw %eax
+       fstsw %al
+
+movnti %ax, (%eax)
+movntiw %ax, (%eax)
+
+       add (%si,%esi), %eax
+       add (%esi,%si), %eax
+       add (%eiz), %eax
+       add (%eax), %eiz
+
+       .intel_syntax noprefix
+       cvtsi2ss xmm1,QWORD PTR [eax]
+       cvtsi2sd xmm1,QWORD PTR [eax]
+       cvtsi2ssq xmm1,QWORD PTR [eax]
+       cvtsi2sdq xmm1,QWORD PTR [eax]
+       movq xmm1, XMMWORD PTR [esp]
+       movq xmm1, DWORD PTR [esp]
+       movq xmm1, WORD PTR [esp]
+       movq xmm1, BYTE PTR [esp]
+       movq XMMWORD PTR [esp],xmm1
+       movq DWORD PTR [esp],xmm1
+       movq WORD PTR [esp],xmm1
+       movq BYTE PTR [esp],xmm1
+       fnstsw eax
+       fnstsw al
+       fstsw eax
+       fstsw al
+
+movsx ax, [eax]
+movsx eax, [eax]
+movzx ax, [eax]
+movzx eax, [eax]
+
+movnti word ptr [eax], ax
+
+       shl [eax], 1
+       rol [ecx], 2
+       rcl [edx], cl
This page took 0.025299 seconds and 4 git commands to generate.