From: Uros Bizjak Date: Tue, 3 Nov 2020 08:46:59 +0000 (+0100) Subject: x86: Fix comment in ix86_expand_builtin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db3f0d218c2cac632cebb913780325a1dff9e157;p=gcc.git x86: Fix comment in ix86_expand_builtin 2020-11-03 Uroš Bizjak gcc/ * config/i386/i386-expand.c (ix86_expand_builtin): Fix comment. --- diff --git a/gcc/config/i386/i386-expand.c b/gcc/config/i386/i386-expand.c index f479466e8f0..6f81b58a08e 100644 --- a/gcc/config/i386/i386-expand.c +++ b/gcc/config/i386/i386-expand.c @@ -11066,19 +11066,19 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget, == (OPTION_MASK_ISA_SSE | OPTION_MASK_ISA_3DNOW_A)) && (isa & (OPTION_MASK_ISA_SSE | OPTION_MASK_ISA_3DNOW_A)) != 0) isa |= (OPTION_MASK_ISA_SSE | OPTION_MASK_ISA_3DNOW_A); + if (((bisa & (OPTION_MASK_ISA_SSE4_2 | OPTION_MASK_ISA_CRC32)) == (OPTION_MASK_ISA_SSE4_2 | OPTION_MASK_ISA_CRC32)) && (isa & (OPTION_MASK_ISA_SSE4_2 | OPTION_MASK_ISA_CRC32)) != 0) isa |= (OPTION_MASK_ISA_SSE4_2 | OPTION_MASK_ISA_CRC32); + if (((bisa & (OPTION_MASK_ISA_FMA | OPTION_MASK_ISA_FMA4)) == (OPTION_MASK_ISA_FMA | OPTION_MASK_ISA_FMA4)) && (isa & (OPTION_MASK_ISA_FMA | OPTION_MASK_ISA_FMA4)) != 0) isa |= (OPTION_MASK_ISA_FMA | OPTION_MASK_ISA_FMA4); - if ((bisa & OPTION_MASK_ISA_MMX) - && !TARGET_MMX - && TARGET_MMX_WITH_SSE - /* NB: __builtin_ia32_maskmovq also requires MMX. */ + if ((bisa & OPTION_MASK_ISA_MMX) && !TARGET_MMX && TARGET_MMX_WITH_SSE + /* __builtin_ia32_maskmovq requires MMX registers. */ && fcode != IX86_BUILTIN_MASKMOVQ) { bisa &= ~OPTION_MASK_ISA_MMX;