From 88bd2203efa6b29aea1bd2a5e4c1b2e56faddd73 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 22 Dec 2022 09:33:26 +0100 Subject: x86: correct SSE dependencies SSE itself takes FXSR as a prereq. Like AES, PCLMUL, and SHA both GFNI and KL take SSE2 as a prereq, for operating on packed integers. And while correcting KL also record it as a prereq to WIDEKL. --- gas/config/tc-i386.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gas') diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 4a0c5bb..b526d19 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -1007,7 +1007,7 @@ static const arch_entry cpu_arch[] = SUBARCH (387, 387, ANY_387, false), SUBARCH (687, 687, ANY_687, false), SUBARCH (cmov, CMOV, CMOV, false), - SUBARCH (fxsr, FXSR, FXSR, false), + SUBARCH (fxsr, FXSR, ANY_FXSR, false), SUBARCH (mmx, MMX, ANY_MMX, false), SUBARCH (sse, SSE, ANY_SSE, false), SUBARCH (sse2, SSE2, ANY_SSE2, false), @@ -1090,7 +1090,7 @@ static const arch_entry cpu_arch[] = SUBARCH (ptwrite, PTWRITE, PTWRITE, false), SUBARCH (ibt, IBT, IBT, false), SUBARCH (shstk, SHSTK, SHSTK, false), - SUBARCH (gfni, GFNI, GFNI, false), + SUBARCH (gfni, GFNI, ANY_GFNI, false), SUBARCH (vaes, VAES, VAES, false), SUBARCH (vpclmulqdq, VPCLMULQDQ, VPCLMULQDQ, false), SUBARCH (wbnoinvd, WBNOINVD, WBNOINVD, false), @@ -1113,8 +1113,8 @@ static const arch_entry cpu_arch[] = SUBARCH (mcommit, MCOMMIT, MCOMMIT, false), SUBARCH (sev_es, SEV_ES, SEV_ES, false), SUBARCH (tsxldtrk, TSXLDTRK, TSXLDTRK, false), - SUBARCH (kl, KL, KL, false), - SUBARCH (widekl, WIDEKL, WIDEKL, false), + SUBARCH (kl, KL, ANY_KL, false), + SUBARCH (widekl, WIDEKL, ANY_WIDEKL, false), SUBARCH (uintr, UINTR, UINTR, false), SUBARCH (hreset, HRESET, HRESET, false), SUBARCH (avx512_fp16, AVX512_FP16, ANY_AVX512_FP16, false), -- cgit v1.1