From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 682C93855026; Sat, 17 Jul 2021 21:48:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 682C93855026 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/101492] New: -msse4 -mgeneral-regs-only doesn't work Date: Sat, 17 Jul 2021 21:48:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jul 2021 21:48:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101492 Bug ID: 101492 Summary: -msse4 -mgeneral-regs-only doesn't work Product: gcc Version: 11.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- Target: i386,x86-64 [hjl@gnu-cfl-2 i386]$ cat pr99744-9.c /* { dg-do compile } */ /* { dg-options "-O2 -msse4.2 -mgeneral-regs-only" } */ #include unsigned int foo1 (unsigned int x, unsigned int y) { return __crc32d (x, y); } [hjl@gnu-cfl-2 i386]$ gcc -S -O2 pr99744-9.c -msse4 -mgeneral-regs-only -o /tmp/x.s In file included from /usr/lib/gcc/x86_64-redhat-linux/11/include/x86gprintrin.h:27, from /usr/lib/gcc/x86_64-redhat-linux/11/include/x86intrin.h:27, from pr99744-9.c:4: pr99744-9.c: In function =E2=80=98foo1=E2=80=99: /usr/lib/gcc/x86_64-redhat-linux/11/include/ia32intrin.h:77:1: error: inlin= ing failed in call to =E2=80=98always_inline=E2=80=99 =E2=80=98__crc32d=E2=80= =99: target specific option mismatch 77 | __crc32d (unsigned int __C, unsigned int __V) | ^~~~~~~~ pr99744-9.c:9:10: note: called from here 9 | return __crc32d (x, y); | ^~~~~~~~~~~~~~~ [hjl@gnu-cfl-2 i386]$=