x86: don't default variable shift count insns to 8-bit operand size
[binutils-gdb.git] / gas / testsuite / gas / i386 / inval.s
index 2584d0ec986fe31596b1a897e477ee1249e121b9..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
@@ -50,6 +51,18 @@ foo: jaw     foo
        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]
@@ -64,3 +77,18 @@ foo: jaw     foo
        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