Add tests for invalid addresses and riz/eiz
[binutils-gdb.git] / gas / testsuite / gas / i386 / x86-64-inval.s
index fd5e8dc6659cfee01c5eb73e8eb0fad9ffbb5ed5..2c2f5db48cfafbbbe8bdc84c3ef5370710486b08 100644 (file)
@@ -1,4 +1,5 @@
        .text
+       .allow_index_reg
 # All the following should be illegal for x86-64
         aaa            # illegal
         aad            # illegal
@@ -66,6 +67,19 @@ movntiw %ax, (%rax)
 mov 0x80000000(%rax),%ebx
 mov 0x80000000,%ebx
 
+       add (%rip,%rsi), %eax
+       add (%rsi,%rip), %eax
+       add (,%rip), %eax
+       add (%eip,%esi), %eax
+       add (%esi,%eip), %eax
+       add (,%eip), %eax
+       add (%rsi,%esi), %eax
+       add (%esi,%rsi), %eax
+       add (%eiz), %eax
+       add (%riz), %eax
+       add (%rax), %riz
+       add (%rax), %eiz
+
        .intel_syntax noprefix
        cmpxchg16b dword ptr [rax] # Must be oword
        movq xmm1, XMMWORD PTR [rsp]