From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EBF7F385B51C; Fri, 10 Feb 2023 09:45:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBF7F385B51C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676022309; bh=cx0SqR8mOd+c48cL31SvjCN4N2YaNdVF035bBS8QoLg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Hwgsl4XQ2nv8+abQ+zmH84HSuHWj5cj7Aegte9qIzEsvbBPhipQEoiNy3PXf90hOI 1XdmKUKRAGWK/EE+UdkzH1wANJusBwIRQQ+RUlWHey0IxaSK9/dOcU6x7pM8GNuva9 f9AufYPHCuoy2eND85LweBvsSimGR0IGh2VUVjuc= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100758] __builtin_cpu_supports does not (always) detect "sse2" Date: Fri, 10 Feb 2023 09:45:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100758 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WONTFIX |FIXED --- Comment #23 from Jakub Jelinek --- I believe in the #c20 case you'd get FEATURE_CMOV FEATURE_MMX FEATURE_SSE FEATURE_SSE2 FEATURE_CMPXCHG8B FEATURE_FXSAVE FEATURE_POPCNT FEATURE_SSE3 FEATURE_SSSE3 FEATURE_SSE4_1 FEATURE_CMPXCHG16B FEATURE_LAHF_LM FEATURE_LM FEATURE_X86_64_BASELINE set and in the #c21 case FEATURE_CMOV FEATURE_MMX FEATURE_SSE FEATURE_SSE2 FEATURE_CMPXCHG8B FEATURE_FXSAVE FEATURE_SSE3 If that matches what those CPUs provide (say compared to /proc/cpuinfo), th= en I think we are good. The change has been committed to trunk already, so you = can try it yourself (or apply the commit patch to say gcc 12).=