]> xenbits.xensource.com Git - xen.git/commit
x86emul: test harness adjustments for AVX512F S/G insns
authorJan Beulich <jbeulich@suse.com>
Thu, 4 Jul 2019 15:43:57 +0000 (17:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 4 Jul 2019 15:43:57 +0000 (17:43 +0200)
commit5f55389d696054e97ad0805989bc28b1dcc4ccc7
tree81005d1a9255d5dca6ccb88c5d814e10c7fa7fa3
parente8af03bf9a3281e55b832cd801528392a9a7d9af
x86emul: test harness adjustments for AVX512F S/G insns

There was an encoding mistake in the EVEX Disp8 test code, which was
benign (due to %rdx getting set to zero) to all non-vSIB tests as it
mistakenly encoded <disp8>(%rdx,%rdx) instead of <disp8>(%rdx,%riz). In
the vSIB case this meant <disp8>(%rdx,%zmm2) instead of the intended
<disp8>(%rdx,%zmm4).

Likewise the access count check wasn't entirely correct for the S/G
case: In the quad-word-index but dword-data case only half the number
of full vector elements get accessed.

As an unrelated change in the main test harness source file distinguish
the "n/a" messages by bitness.

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