x86emul/test: drop another instance of .byte
authorJan Beulich <jbeulich@suse.com>
Tue, 18 Dec 2018 13:26:44 +0000 (14:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 18 Dec 2018 13:26:44 +0000 (14:26 +0100)
Now that we require use of the {evex} pseudo-prefix, we can also use
the q-suffixed encoding of VPCMPESTRI, which is available as of 2.29
just like {evex} is.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/test_x86_emulator.c

index 165c3c72b2a386c5c2541e75cd6d695d797f4045..2806ddcb0f3d288592630fdd7207b898d52eb15e 100644 (file)
@@ -3322,22 +3322,15 @@ int main(int argc, char **argv)
     {
         decl_insn(vpcmpestri);
 
-#ifdef __x86_64__
-        /*
-         * gas up to at least 2.27 doesn't honor explict "rex.w" for
-         * VEX/EVEX encoded instructions, and also doesn't provide any
-         * other means to control VEX.W.
-         */
         asm volatile ( "movq %0, %%xmm2\n"
+#ifdef __x86_64__
                        put_insn(vpcmpestri,
-                                ".byte 0xC4, 0xE3, 0xF9, 0x61, 0x16, 0x7A")
-                       :: "m" (res[0]) );
+                                "vpcmpestriq $0b01111010, (%1), %%xmm2")
 #else
-        asm volatile ( "movq %0, %%xmm2\n"
                        put_insn(vpcmpestri,
                                 "vpcmpestri $0b01111010, (%1), %%xmm2")
-                       :: "m" (res[0]), "S" (NULL) );
 #endif
+                       :: "m" (res[0]), "S" (NULL) );
 
         set_insn(vpcmpestri);
 #ifdef __x86_64__