public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/101492] New: -msse4 -mgeneral-regs-only doesn't work
@ 2021-07-17 21:48 hjl.tools at gmail dot com
2021-07-18 19:38 ` [Bug target/101492] " cvs-commit at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-17 21:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101492
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 <x86intrin.h>
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 ‘foo1’:
/usr/lib/gcc/x86_64-redhat-linux/11/include/ia32intrin.h:77:1: error: inlining
failed in call to ‘always_inline’ ‘__crc32d’: 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]$
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/101492] -msse4 -mgeneral-regs-only doesn't work
2021-07-17 21:48 [Bug target/101492] New: -msse4 -mgeneral-regs-only doesn't work hjl.tools at gmail dot com
@ 2021-07-18 19:38 ` cvs-commit at gcc dot gnu.org
2021-07-18 19:54 ` hjl.tools at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-07-18 19:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101492
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:6ae8aac19cdbdbd96d90f86e4d8505fe121bdf06
commit r12-2387-g6ae8aac19cdbdbd96d90f86e4d8505fe121bdf06
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Jul 17 14:38:39 2021 -0700
x86: Enable the GPR only instructions for -mgeneral-regs-only
For -mgeneral-regs-only, enable the GPR only instructions which are
enabled implicitly by SSE ISAs unless they have been disabled explicitly.
gcc/
PR target/101492
* common/config/i386/i386-common.c (ix86_handle_option): For
-mgeneral-regs-only, enable the GPR only instructions which are
enabled implicitly by SSE ISAs unless they have been disabled
explicitly.
gcc/testsuite/
PR target/101492
* gcc.target/i386/pr101492-1.c: New test.
* gcc.target/i386/pr101492-2.c: Likewise.
* gcc.target/i386/pr101492-3.c: Likewise.
* gcc.target/i386/pr101492-4.c: Likewise.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/101492] -msse4 -mgeneral-regs-only doesn't work
2021-07-17 21:48 [Bug target/101492] New: -msse4 -mgeneral-regs-only doesn't work hjl.tools at gmail dot com
2021-07-18 19:38 ` [Bug target/101492] " cvs-commit at gcc dot gnu.org
@ 2021-07-18 19:54 ` hjl.tools at gmail dot com
2021-08-25 12:58 ` cvs-commit at gcc dot gnu.org
2021-08-25 13:07 ` hjl.tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-18 19:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101492
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |12.0
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for GCC 12.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/101492] -msse4 -mgeneral-regs-only doesn't work
2021-07-17 21:48 [Bug target/101492] New: -msse4 -mgeneral-regs-only doesn't work hjl.tools at gmail dot com
2021-07-18 19:38 ` [Bug target/101492] " cvs-commit at gcc dot gnu.org
2021-07-18 19:54 ` hjl.tools at gmail dot com
@ 2021-08-25 12:58 ` cvs-commit at gcc dot gnu.org
2021-08-25 13:07 ` hjl.tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-25 12:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101492
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:bbd6fcde4e2a7ce8543e9f71bcfa9ad48fda2e3e
commit r11-8928-gbbd6fcde4e2a7ce8543e9f71bcfa9ad48fda2e3e
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Jul 17 14:38:39 2021 -0700
x86: Enable the GPR only instructions for -mgeneral-regs-only
For -mgeneral-regs-only, enable the GPR only instructions which are
enabled implicitly by SSE ISAs unless they have been disabled explicitly.
gcc/
PR target/101492
* common/config/i386/i386-common.c (ix86_handle_option): For
-mgeneral-regs-only, enable the GPR only instructions which are
enabled implicitly by SSE ISAs unless they have been disabled
explicitly.
gcc/testsuite/
PR target/101492
* gcc.target/i386/pr101492-1.c: New test.
* gcc.target/i386/pr101492-2.c: Likewise.
* gcc.target/i386/pr101492-3.c: Likewise.
* gcc.target/i386/pr101492-4.c: Likewise.
(cherry picked from commit 6ae8aac19cdbdbd96d90f86e4d8505fe121bdf06)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/101492] -msse4 -mgeneral-regs-only doesn't work
2021-07-17 21:48 [Bug target/101492] New: -msse4 -mgeneral-regs-only doesn't work hjl.tools at gmail dot com
` (2 preceding siblings ...)
2021-08-25 12:58 ` cvs-commit at gcc dot gnu.org
@ 2021-08-25 13:07 ` hjl.tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2021-08-25 13:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101492
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|12.0 |11.3
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Also fixed for GCC 11.3.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-25 13:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-17 21:48 [Bug target/101492] New: -msse4 -mgeneral-regs-only doesn't work hjl.tools at gmail dot com
2021-07-18 19:38 ` [Bug target/101492] " cvs-commit at gcc dot gnu.org
2021-07-18 19:54 ` hjl.tools at gmail dot com
2021-08-25 12:58 ` cvs-commit at gcc dot gnu.org
2021-08-25 13:07 ` hjl.tools at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).