i386: Also check R12-R15 registers when optimizing testq to testb
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / rex.s
index a142312a2c6bea4b5242bf233253ac60540b32ef..c1490ccdeef47ad29b341bf075d9565470bbe763 100644 (file)
@@ -9,3 +9,40 @@ _start:
        rex64/fxsave (,%r8)
        rex/fxsave (%r8,%r8)
        rex64/fxsave (%r8,%r8)
+
+       rex.w add       (%rax,%rax), %eax
+       rex.r add       (%rax,%rax), %eax
+       rex.b add       (%rax,%rax), %eax
+       rex.x add       (%rax,%rax), %eax
+
+       rex.w add       (%r8,%rax), %eax
+       rex.r add       (%rax,%r8), %eax
+       rex.b add       (%rax,%rax), %r8d
+       rex.x add       (%rax,%rax), %rax
+
+       .byte 0x41,0x9b,0xdd,0x30
+       fsave (%r8)
+
+       .byte 0x40
+       vmovapd (%rax),%xmm0
+
+# Test prefixes family.
+       rex
+       rex.B
+       rex.X
+       rex.XB
+       rex.R
+       rex.RB
+       rex.RX
+       rex.RXB
+       rex.W
+       rex.WB
+       rex.WX
+       rex.WXB
+       rex.WR
+       rex.WRB
+       rex.WRX
+       rex.WRXB
+# Make sure that the above rex prefix won't become the rex prefix for
+# the padding.
+       rex
This page took 0.024964 seconds and 4 git commands to generate.