public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/101896] New: [12 Regression] ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20481 since r12-2837-g50b5877925ef5ae8
@ 2021-08-13 7:26 marxin at gcc dot gnu.org
2021-08-13 7:26 ` [Bug target/101896] " marxin at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-13 7:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101896
Bug ID: 101896
Summary: [12 Regression] ICE in expand_vec_perm_broadcast_1, at
config/i386/i386-expand.c:20481 since
r12-2837-g50b5877925ef5ae8
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: jakub at gcc dot gnu.org
Target Milestone: ---
The following fails:
$ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-v64qi.c
-Ofast -mavx512er -c
during GIMPLE pass: veclower2
In file included from
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-v64qi.c:11:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-main.inc: In
function ‘test_1’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-main.inc:10:1:
internal compiler error: in expand_vec_perm_broadcast_1, at
config/i386/i386-expand.c:20484
10 | test_##num (void) \
| ^~~~~
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-64.inc:4:1:
note: in expansion of macro ‘T’
4 | T (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) \
| ^
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-main.inc:28:1:
note: in expansion of macro ‘TESTS’
28 | TESTS
| ^~~~~
0x175e59a expand_vec_perm_broadcast_1
/home/marxin/Programming/gcc/gcc/config/i386/i386-expand.c:20484
0x175e679 expand_vec_perm_broadcast
/home/marxin/Programming/gcc/gcc/config/i386/i386-expand.c:20512
0x175f2a2 ix86_expand_vec_perm_const_1
/home/marxin/Programming/gcc/gcc/config/i386/i386-expand.c:20723
0x175fd8c ix86_vectorize_vec_perm_const(machine_mode, rtx_def*, rtx_def*,
rtx_def*, vec_perm_indices const&)
/home/marxin/Programming/gcc/gcc/config/i386/i386-expand.c:21009
0x1423722 lower_vec_perm
/home/marxin/Programming/gcc/gcc/tree-vect-generic.c:1521
0x1426adc expand_vector_operations_1
/home/marxin/Programming/gcc/gcc/tree-vect-generic.c:2099
0x1428b25 expand_vector_operations
/home/marxin/Programming/gcc/gcc/tree-vect-generic.c:2364
0x1428d3e execute
/home/marxin/Programming/gcc/gcc/tree-vect-generic.c:2450
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/101896] [12 Regression] ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20481 since r12-2837-g50b5877925ef5ae8
2021-08-13 7:26 [Bug target/101896] New: [12 Regression] ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20481 since r12-2837-g50b5877925ef5ae8 marxin at gcc dot gnu.org
@ 2021-08-13 7:26 ` marxin at gcc dot gnu.org
2021-08-13 8:13 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-13 7:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101896
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Target Milestone|--- |12.0
Ever confirmed|0 |1
Last reconfirmed| |2021-08-13
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/101896] [12 Regression] ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20481 since r12-2837-g50b5877925ef5ae8
2021-08-13 7:26 [Bug target/101896] New: [12 Regression] ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20481 since r12-2837-g50b5877925ef5ae8 marxin at gcc dot gnu.org
2021-08-13 7:26 ` [Bug target/101896] " marxin at gcc dot gnu.org
@ 2021-08-13 8:13 ` jakub at gcc dot gnu.org
2021-08-14 9:48 ` cvs-commit at gcc dot gnu.org
2021-08-14 9:49 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-08-13 8:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101896
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 51299
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51299&action=edit
gcc12-pr101896.patch
Untested fix.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/101896] [12 Regression] ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20481 since r12-2837-g50b5877925ef5ae8
2021-08-13 7:26 [Bug target/101896] New: [12 Regression] ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20481 since r12-2837-g50b5877925ef5ae8 marxin at gcc dot gnu.org
2021-08-13 7:26 ` [Bug target/101896] " marxin at gcc dot gnu.org
2021-08-13 8:13 ` jakub at gcc dot gnu.org
@ 2021-08-14 9:48 ` cvs-commit at gcc dot gnu.org
2021-08-14 9:49 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-14 9:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101896
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:240f07805db27cfc746276039c5edccb4c031070
commit r12-2907-g240f07805db27cfc746276039c5edccb4c031070
Author: Jakub Jelinek <jakub@redhat.com>
Date: Sat Aug 14 11:44:46 2021 +0200
i386: Fix ICE with V64QImode broadcast permutation with -mavx512f
-mno-avx512bw
The testcase shows another problem, for TARGET_AVX512BW we have a single
insn
doing broadcast from the first element, but don't have one for broadcast
of 2nd+ element (so for d->perm[0] we must return false), but for
TARGET_AVX512F && !TARGET_AVX512BW we don't even have support for that
other
broadcast. V64QImode case was just added to the AVX2 cases which had
gcc_assert (!TARGET_AVX2 || d->perm[0]);
but for V64QImode we actually need
gcc_assert (!TARGET_AVX512BW || d->perm[0]);
2021-08-14 Jakub Jelinek <jakub@redhat.com>
PR target/101896
* config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
<case E_V64QImode>: For this mode assert
!TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 ||
d->perm[0].
* gcc.target/i386/avx512f-pr101896.c: New test.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/101896] [12 Regression] ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20481 since r12-2837-g50b5877925ef5ae8
2021-08-13 7:26 [Bug target/101896] New: [12 Regression] ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20481 since r12-2837-g50b5877925ef5ae8 marxin at gcc dot gnu.org
` (2 preceding siblings ...)
2021-08-14 9:48 ` cvs-commit at gcc dot gnu.org
@ 2021-08-14 9:49 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-08-14 9:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101896
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-14 9:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-13 7:26 [Bug target/101896] New: [12 Regression] ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20481 since r12-2837-g50b5877925ef5ae8 marxin at gcc dot gnu.org
2021-08-13 7:26 ` [Bug target/101896] " marxin at gcc dot gnu.org
2021-08-13 8:13 ` jakub at gcc dot gnu.org
2021-08-14 9:48 ` cvs-commit at gcc dot gnu.org
2021-08-14 9:49 ` jakub 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).