[PATCH] x86: also test alternative VMGEXIT encoding
Jan Beulich
jbeulich@suse.com
Thu Jun 18 07:13:49 GMT 2020
gas/
2020-06-XX Jan Beulich <jbeulich@suse.com>
* testsuite/gas/i386/arch-13.s: Add alternative VMGEXIT case.
* testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
expectations.
---
Note that this will cause a testsuite failure until 6fde587ff78a ("x86:
Delete incorrect vmgexit entry in prefix_table") gets reverted, as was
already requested.
--- a/gas/testsuite/gas/i386/arch-13.d
+++ b/gas/testsuite/gas/i386/arch-13.d
@@ -1,4 +1,4 @@
-#as: -march=i686+smap+adx+rdseed+clzero+xsavec+xsaves+clflushopt+mwaitx+rdpid+clwb+wbnoinvd+rdpru+mcommit+sev_es
+#as: -march=i686+smap+adx+rdseed+clzero+xsavec+xsaves+clflushopt+mwaitx+rdpid+clwb+wbnoinvd+rdpru+mcommit+svme+sev_es
#objdump: -dw
#name: i386 arch 13
@@ -29,5 +29,6 @@ Disassembly of section .text:
[ ]*[a-f0-9]+:[ ]*f3 0f c7 f8[ ]*rdpid %eax
[ ]*[a-f0-9]+:[ ]*0f 01 fd[ ]*rdpru[ ]*
[ ]*[a-f0-9]+:[ ]*f3 0f 01 d9[ ]*vmgexit[ ]*
+[ ]*[a-f0-9]+:[ ]*f2 0f 01 d9[ ]*vmgexit[ ]*
[ ]*[a-f0-9]+:[ ]*f3 0f 09[ ]*wbnoinvd[ ]*
#pass
--- a/gas/testsuite/gas/i386/arch-13.s
+++ b/gas/testsuite/gas/i386/arch-13.s
@@ -40,6 +40,7 @@
# vmgexit instruction
vmgexit
+ repne; vmmcall # vmgexit alternative encoding
# wbnoinvd instruction
wbnoinvd
More information about the Binutils
mailing list