public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109392] New: [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177
@ 2023-04-03 16:50 gscfq@t-online.de
2023-04-03 18:08 ` [Bug tree-optimization/109392] " pinskia at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: gscfq@t-online.de @ 2023-04-03 16:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109392
Bug ID: 109392
Summary: [12/13 Regression] ICE in tree_vec_extract, at
tree-vect-generic.cc:177
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 with r12 before 20210502 :
$ cat z1.c
typedef short __attribute__ ((__vector_size__ (64))) V;
V v, w;
inline V foo (V a, V b);
V
foo (V a, V b)
{
vfork();
b &= v < b;
return (V){foo (b, w)[3], (V){}[3]};
}
$ gcc-13-20230402 -c z1.c
z1.c: In function 'foo':
z1.c:6:1: warning: AVX512F vector return without AVX512F enabled changes the
ABI [-Wpsabi]
6 | {
| ^
z1.c:7:3: warning: implicit declaration of function 'vfork'
[-Wimplicit-function-declaration]
7 | vfork();
| ^~~~~
z1.c:5:1: note: the ABI for passing parameters with 64-byte alignment has
changed in GCC 4.6
5 | foo (V a, V b)
| ^~~
during GIMPLE pass: veclower
z1.c:5:1: internal compiler error: in tree_vec_extract, at
tree-vect-generic.cc:177
0x111bdd6 tree_vec_extract(gimple_stmt_iterator*, tree_node*, tree_node*,
tree_node*, tree_node*)
../../gcc/tree-vect-generic.cc:177
0x111f8fb expand_vector_condition
../../gcc/tree-vect-generic.cc:1140
0x6cac8d expand_vector_comparison
../../gcc/tree-vect-generic.cc:453
0x11229c1 expand_vector_operation
../../gcc/tree-vect-generic.cc:1239
0x11229c1 expand_vector_operations_1
../../gcc/tree-vect-generic.cc:2357
0x11229c1 expand_vector_operations
../../gcc/tree-vect-generic.cc:2391
0x11229c1 execute
../../gcc/tree-vect-generic.cc:2445
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/109392] [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177
2023-04-03 16:50 [Bug c/109392] New: [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 gscfq@t-online.de
@ 2023-04-03 18:08 ` pinskia at gcc dot gnu.org
2023-04-04 0:45 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-03 18:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109392
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |tree-optimization
Target Milestone|--- |12.3
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/109392] [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177
2023-04-03 16:50 [Bug c/109392] New: [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 gscfq@t-online.de
2023-04-03 18:08 ` [Bug tree-optimization/109392] " pinskia at gcc dot gnu.org
@ 2023-04-04 0:45 ` pinskia at gcc dot gnu.org
2023-04-04 0:47 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-04 0:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109392
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-04-04
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Most likely caused by r12-117-gb972e036f40c .
I think the assert happens because the argument t is abnormal SSA_NAME and
resimplify/maybe_push_res_to_seq decides it can't do anything on it so returns
null.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/109392] [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177
2023-04-03 16:50 [Bug c/109392] New: [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 gscfq@t-online.de
2023-04-03 18:08 ` [Bug tree-optimization/109392] " pinskia at gcc dot gnu.org
2023-04-04 0:45 ` pinskia at gcc dot gnu.org
@ 2023-04-04 0:47 ` pinskia at gcc dot gnu.org
2023-04-04 8:14 ` [Bug tree-optimization/109392] [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 since r12-117-gb972e036f40c marxin at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-04 0:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109392
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
here is a better testcase which does not use vfork which is implicit
returns_twice:
```
typedef short __attribute__ ((__vector_size__ (64))) V;
V v, w;
void g(void) __attribute__((returns_twice));
V foo (V a, V b)
{
g();
b &= v < b;
return (V){foo (b, w)[3], (V){}[3]};
}
```
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/109392] [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 since r12-117-gb972e036f40c
2023-04-03 16:50 [Bug c/109392] New: [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 gscfq@t-online.de
` (2 preceding siblings ...)
2023-04-04 0:47 ` pinskia at gcc dot gnu.org
@ 2023-04-04 8:14 ` marxin at gcc dot gnu.org
2023-04-04 12:46 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-04-04 8:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109392
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org,
| |rguenth at gcc dot gnu.org
Summary|[12/13 Regression] ICE in |[12/13 Regression] ICE in
|tree_vec_extract, at |tree_vec_extract, at
|tree-vect-generic.cc:177 |tree-vect-generic.cc:177
| |since r12-117-gb972e036f40c
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Confirmed.
>
> Most likely caused by r12-117-gb972e036f40c .
Yes, started with this revision.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/109392] [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 since r12-117-gb972e036f40c
2023-04-03 16:50 [Bug c/109392] New: [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 gscfq@t-online.de
` (3 preceding siblings ...)
2023-04-04 8:14 ` [Bug tree-optimization/109392] [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 since r12-117-gb972e036f40c marxin at gcc dot gnu.org
@ 2023-04-04 12:46 ` jakub at gcc dot gnu.org
2023-04-08 18:24 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-04-04 12:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109392
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 54807
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54807&action=edit
gcc13-pr109392.patch
Untested fix.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/109392] [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 since r12-117-gb972e036f40c
2023-04-03 16:50 [Bug c/109392] New: [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 gscfq@t-online.de
` (4 preceding siblings ...)
2023-04-04 12:46 ` jakub at gcc dot gnu.org
@ 2023-04-08 18:24 ` cvs-commit at gcc dot gnu.org
2023-04-11 8:17 ` [Bug tree-optimization/109392] [12 " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-04-08 18:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109392
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jeff Law <law@gcc.gnu.org>:
https://gcc.gnu.org/g:101380a8394c22a7a2ea70de2060ee93716156e2
commit r13-7126-g101380a8394c22a7a2ea70de2060ee93716156e2
Author: Jakub Jelinek <jakub@redhat.com>
Date: Sat Apr 8 12:21:42 2023 -0600
PR tree-optimization/109392
If we have an object with SSA_NAME_OCCURS_IN_ABNORMAL_PHI, then
maybe_push_res_to_seq may fail. Directly build the extraction
for that case.
PR tree-optimization/109392
gcc/
* tree-vect-generic.cc (tree_vec_extract): Handle failure
of maybe_push_res_to_seq better.
gcc/testsuite/
* gcc.dg/pr109392.c: New test.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/109392] [12 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 since r12-117-gb972e036f40c
2023-04-03 16:50 [Bug c/109392] New: [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 gscfq@t-online.de
` (5 preceding siblings ...)
2023-04-08 18:24 ` cvs-commit at gcc dot gnu.org
@ 2023-04-11 8:17 ` rguenth at gcc dot gnu.org
2023-04-27 13:19 ` cvs-commit at gcc dot gnu.org
2023-04-27 13:20 ` rguenth at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-11 8:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109392
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/109392] [12 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 since r12-117-gb972e036f40c
2023-04-03 16:50 [Bug c/109392] New: [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 gscfq@t-online.de
` (6 preceding siblings ...)
2023-04-11 8:17 ` [Bug tree-optimization/109392] [12 " rguenth at gcc dot gnu.org
@ 2023-04-27 13:19 ` cvs-commit at gcc dot gnu.org
2023-04-27 13:20 ` rguenth at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-04-27 13:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109392
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:d639236ea87ff8a6a2d56c0408e6eb92674418e6
commit r12-9482-gd639236ea87ff8a6a2d56c0408e6eb92674418e6
Author: Jakub Jelinek <jakub@redhat.com>
Date: Sat Apr 8 12:21:42 2023 -0600
PR tree-optimization/109392
If we have an object with SSA_NAME_OCCURS_IN_ABNORMAL_PHI, then
maybe_push_res_to_seq may fail. Directly build the extraction
for that case.
PR tree-optimization/109392
gcc/
* tree-vect-generic.cc (tree_vec_extract): Handle failure
of maybe_push_res_to_seq better.
gcc/testsuite/
* gcc.dg/pr109392.c: New test.
(cherry picked from commit 101380a8394c22a7a2ea70de2060ee93716156e2)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/109392] [12 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 since r12-117-gb972e036f40c
2023-04-03 16:50 [Bug c/109392] New: [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 gscfq@t-online.de
` (7 preceding siblings ...)
2023-04-27 13:19 ` cvs-commit at gcc dot gnu.org
@ 2023-04-27 13:20 ` rguenth at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-27 13:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109392
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Known to fail| |12.2.0
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-04-27 13:20 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-03 16:50 [Bug c/109392] New: [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 gscfq@t-online.de
2023-04-03 18:08 ` [Bug tree-optimization/109392] " pinskia at gcc dot gnu.org
2023-04-04 0:45 ` pinskia at gcc dot gnu.org
2023-04-04 0:47 ` pinskia at gcc dot gnu.org
2023-04-04 8:14 ` [Bug tree-optimization/109392] [12/13 Regression] ICE in tree_vec_extract, at tree-vect-generic.cc:177 since r12-117-gb972e036f40c marxin at gcc dot gnu.org
2023-04-04 12:46 ` jakub at gcc dot gnu.org
2023-04-08 18:24 ` cvs-commit at gcc dot gnu.org
2023-04-11 8:17 ` [Bug tree-optimization/109392] [12 " rguenth at gcc dot gnu.org
2023-04-27 13:19 ` cvs-commit at gcc dot gnu.org
2023-04-27 13:20 ` rguenth at gcc dot gnu.org
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).