x86emul: correct #UD check for AVX512-FP16 complex multiplications

avx512_vlen_check()'s argument was inverted, while the surrounding
conditional wrongly forced the EVEX.L'L check for the scalar forms when
embedded rounding was in effect.

Fixes: d14c52cba0 ("x86emul: handle AVX512-FP16 complex multiplication insns")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: a30d438ce5
master date: 2024-08-19 15:32:31 +0200
This commit is contained in:
Jan Beulich committed 2024-09-24 14:30:04 +02:00
1 parent e12998a9db
commit e2f29f7bad
1 file changed
+2 -2
+2 -2
View File
@@ -7984,8 +7984,8 @@ x86_emulate(
generate_exception_if(modrm_reg == src1 ||
(ea.type != OP_MEM && modrm_reg == modrm_rm),
X86_EXC_UD);
if ( ea.type != OP_REG || (b & 1) || !evex.brs )
avx512_vlen_check(!(b & 1));
if ( ea.type != OP_REG || !evex.brs )
avx512_vlen_check(b & 1);
goto simd_zmm;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.