From 6c067bbb1a524e90304c4e6c79a9f28bbe5c58e9 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 24 Oct 2012 21:41:33 +0000 Subject: gas/testsuite/ * gas/i386/rex.s: Add test of REX prefix before fsave (i.e. fwait). * gas/i386/rex.d: Update. opcodes/ * i386-dis.c (ckprefix): When bailing out for fwait with prefixes, set rex_used to rex. --- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/i386/ilp32/rex.d | 3 +++ gas/testsuite/gas/i386/rex.d | 3 +++ gas/testsuite/gas/i386/rex.s | 3 +++ 4 files changed, 14 insertions(+) (limited to 'gas/testsuite') diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index b0aa64c..f92b1f5 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-10-24 Roland McGrath + + * gas/i386/rex.s: Add test of REX prefix before fsave (i.e. fwait). + * gas/i386/rex.d: Update. + 2012-10-22 Peter Bergner * gas/ppc/altivec.s : Fix opcode spelling. diff --git a/gas/testsuite/gas/i386/ilp32/rex.d b/gas/testsuite/gas/i386/ilp32/rex.d index 50eb22c..7c704c9 100644 --- a/gas/testsuite/gas/i386/ilp32/rex.d +++ b/gas/testsuite/gas/i386/ilp32/rex.d @@ -15,6 +15,9 @@ Disassembly of section .text: [ ]*[0-9a-f]+:[ ]+4a 0f ae 04 05 00 00 00 00[ ]+fxsave64[ ]+(0x0)?\(,%r8(,1)?\) [ ]*[0-9a-f]+:[ ]+43 0f ae 04 00[ ]+fxsave[ ]+\(%r8,%r8(,1)?\) [ ]*[0-9a-f]+:[ ]+4b 0f ae 04 00[ ]+fxsave64[ ]+\(%r8,%r8(,1)?\) +[ ]*[0-9a-f]+:[ ]+41\s+rex\.B +[ ]*[0-9a-f]+:[ ]+9b dd 30\s+fsave\s+\(%rax\) +[ ]*[0-9a-f]+:[ ]+9b 41 dd 30\s+fsave\s+\(%r8\) [ ]*[0-9a-f]+:[ ]+40 c5 f9 28 00[ ]+rex vmovapd \(%rax\),%xmm0 [ ]*[0-9a-f]+:[ ]+40[ ]+rex [ ]*[0-9a-f]+:[ ]+41[ ]+rex.B diff --git a/gas/testsuite/gas/i386/rex.d b/gas/testsuite/gas/i386/rex.d index 3548ff2..bf783c6 100644 --- a/gas/testsuite/gas/i386/rex.d +++ b/gas/testsuite/gas/i386/rex.d @@ -14,6 +14,9 @@ Disassembly of section .text: [ ]*[0-9a-f]+:[ ]+4a 0f ae 04 05 00 00 00 00[ ]+fxsave64[ ]+(0x0)?\(,%r8(,1)?\) [ ]*[0-9a-f]+:[ ]+43 0f ae 04 00[ ]+fxsave[ ]+\(%r8,%r8(,1)?\) [ ]*[0-9a-f]+:[ ]+4b 0f ae 04 00[ ]+fxsave64[ ]+\(%r8,%r8(,1)?\) +[ ]*[0-9a-f]+:[ ]+41\s+rex\.B +[ ]*[0-9a-f]+:[ ]+9b dd 30\s+fsave\s+\(%rax\) +[ ]*[0-9a-f]+:[ ]+9b 41 dd 30\s+fsave\s+\(%r8\) [ ]*[0-9a-f]+:[ ]+40 c5 f9 28 00[ ]+rex vmovapd \(%rax\),%xmm0 [ ]*[0-9a-f]+:[ ]+40[ ]+rex [ ]*[0-9a-f]+:[ ]+41[ ]+rex.B diff --git a/gas/testsuite/gas/i386/rex.s b/gas/testsuite/gas/i386/rex.s index 055edb7..004b9b8 100644 --- a/gas/testsuite/gas/i386/rex.s +++ b/gas/testsuite/gas/i386/rex.s @@ -10,6 +10,9 @@ _start: rex/fxsave (%r8,%r8) rex64/fxsave (%r8,%r8) + .byte 0x41,0x9b,0xdd,0x30 + fsave (%r8) + .byte 0x40 vmovapd (%rax),%xmm0 -- cgit v1.1