diff mbox series

x86emul/test: correct VRNDSCALES{S,D} entries in predicates test

Message ID 832ca068-5316-b4eb-60ee-aeff009ef1cc@suse.com (mailing list archive)
State New, archived
Headers show
Series x86emul/test: correct VRNDSCALES{S,D} entries in predicates test | expand

Commit Message

Jan Beulich March 3, 2022, 4:48 p.m. UTC
While benign (because only the decoder is exercised here, whereas a
wrong EVEX.W would cause an exception only during actual emulation),
let's still have correct information in the table entries.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

Comments

Andrew Cooper March 3, 2022, 5:46 p.m. UTC | #1
On 03/03/2022 16:48, Jan Beulich wrote:
> While benign (because only the decoder is exercised here, whereas a
> wrong EVEX.W would cause an exception only during actual emulation),
> let's still have correct information in the table entries.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
diff mbox series

Patch

--- a/tools/tests/x86_emulator/predicates.c
+++ b/tools/tests/x86_emulator/predicates.c
@@ -1974,8 +1974,8 @@  static const struct evex {
     { { 0x05 }, 3, T, R, pfx_66, W1, Ln }, /* vpermilpd */
     { { 0x08 }, 3, T, R, pfx_66, W0, Ln }, /* vrndscaleps */
     { { 0x09 }, 3, T, R, pfx_66, W1, Ln }, /* vrndscalepd */
-    { { 0x0a }, 3, T, R, pfx_66, WIG, LIG }, /* vrndscaless */
-    { { 0x0b }, 3, T, R, pfx_66, WIG, LIG }, /* vrndscalesd */
+    { { 0x0a }, 3, T, R, pfx_66, W0, LIG }, /* vrndscaless */
+    { { 0x0b }, 3, T, R, pfx_66, W1, LIG }, /* vrndscalesd */
     { { 0x0f }, 3, T, R, pfx_66, WIG, Ln }, /* vpalignr */
     { { 0x14 }, 3, T, W, pfx_66, WIG, L0 }, /* vpextrb */
     { { 0x15 }, 3, T, W, pfx_66, WIG, L0 }, /* vpextrw */