public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/108436] New: [13 Regression] ICE in gen_prefetch, at config/i386/i386.md:24155
@ 2023-01-17 17:49 gscfq@t-online.de
2023-01-17 17:53 ` [Bug target/108436] " pinskia at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gscfq@t-online.de @ 2023-01-17 17:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108436
Bug ID: 108436
Summary: [13 Regression] ICE in gen_prefetch, at
config/i386/i386.md:24155
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Started between 20221106 and 20221120 :
$ cat z1.c
#include <x86intrin.h>
void* p;
void extern
prefetch_test (void)
{
__builtin_ia32_prefetch (p, 0, 4, 0);
}
$ gcc-13-20230115 -c z1.c
during RTL pass: expand
z1.c: In function 'prefetch_test':
z1.c:6:3: internal compiler error: in gen_prefetch, at
config/i386/i386.md:24155
6 | __builtin_ia32_prefetch (p, 0, 4, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x154cfec gen_prefetch(rtx_def*, rtx_def*, rtx_def*)
../../gcc/config/i386/i386.md:24155
0x10edffe ix86_expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode,
int)
../../gcc/config/i386/i386-expand.cc:13200
0x88cc9b expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
../../gcc/builtins.cc:7321
0x9b3ef0 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
../../gcc/expr.cc:11872
0x8af731 expand_expr
../../gcc/expr.h:310
0x8af731 expand_call_stmt
../../gcc/cfgexpand.cc:2831
0x8af731 expand_gimple_stmt_1
../../gcc/cfgexpand.cc:3880
0x8af731 expand_gimple_stmt
../../gcc/cfgexpand.cc:4044
0x8b4307 expand_gimple_basic_block
../../gcc/cfgexpand.cc:6096
0x8b6dce execute
../../gcc/cfgexpand.cc:6831
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/108436] ICE in gen_prefetch, at config/i386/i386.md:24155
2023-01-17 17:49 [Bug c/108436] New: [13 Regression] ICE in gen_prefetch, at config/i386/i386.md:24155 gscfq@t-online.de
@ 2023-01-17 17:53 ` pinskia at gcc dot gnu.org
2023-01-17 21:34 ` hjl.tools at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-17 17:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108436
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[13 Regression] ICE in |ICE in gen_prefetch, at
|gen_prefetch, at |config/i386/i386.md:24155
|config/i386/i386.md:24155 |
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likely introduced when __builtin_ia32_prefetch was introduced;
r13-3711-gb384d9a05a15d4
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/108436] ICE in gen_prefetch, at config/i386/i386.md:24155
2023-01-17 17:49 [Bug c/108436] New: [13 Regression] ICE in gen_prefetch, at config/i386/i386.md:24155 gscfq@t-online.de
2023-01-17 17:53 ` [Bug target/108436] " pinskia at gcc dot gnu.org
@ 2023-01-17 21:34 ` hjl.tools at gmail dot com
2023-01-19 21:44 ` cvs-commit at gcc dot gnu.org
2023-01-20 3:11 ` hjl.tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2023-01-17 21:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108436
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 54294
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54294&action=edit
Issue a warning for the invalid 3rd argument
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/108436] ICE in gen_prefetch, at config/i386/i386.md:24155
2023-01-17 17:49 [Bug c/108436] New: [13 Regression] ICE in gen_prefetch, at config/i386/i386.md:24155 gscfq@t-online.de
2023-01-17 17:53 ` [Bug target/108436] " pinskia at gcc dot gnu.org
2023-01-17 21:34 ` hjl.tools at gmail dot com
@ 2023-01-19 21:44 ` cvs-commit at gcc dot gnu.org
2023-01-20 3:11 ` hjl.tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-01-19 21:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108436
--- Comment #3 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:77a67e3a9294c825ac1a2b205fbb266e7c29e82b
commit r13-5263-g77a67e3a9294c825ac1a2b205fbb266e7c29e82b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Jan 18 11:08:14 2023 -0800
x86: Check invalid third argument to __builtin_ia32_prefetch
Check invalid third argument to __builtin_ia32_prefetch when expaning
__builtin_ia32_prefetch to avoid ICE later.
gcc/
PR target/108436
* config/i386/i386-expand.cc (ix86_expand_builtin): Check
invalid third argument to __builtin_ia32_prefetch.
gcc/testsuite/
* gcc.target/i386/pr108436.c: New test.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/108436] ICE in gen_prefetch, at config/i386/i386.md:24155
2023-01-17 17:49 [Bug c/108436] New: [13 Regression] ICE in gen_prefetch, at config/i386/i386.md:24155 gscfq@t-online.de
` (2 preceding siblings ...)
2023-01-19 21:44 ` cvs-commit at gcc dot gnu.org
@ 2023-01-20 3:11 ` hjl.tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2023-01-20 3:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108436
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-01-20 3:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-17 17:49 [Bug c/108436] New: [13 Regression] ICE in gen_prefetch, at config/i386/i386.md:24155 gscfq@t-online.de
2023-01-17 17:53 ` [Bug target/108436] " pinskia at gcc dot gnu.org
2023-01-17 21:34 ` hjl.tools at gmail dot com
2023-01-19 21:44 ` cvs-commit at gcc dot gnu.org
2023-01-20 3:11 ` 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).