public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104467] New: [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop
@ 2022-02-09 14:24 zsojka at seznam dot cz
  2022-02-09 15:00 ` [Bug target/104467] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2022-02-09 14:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104467

            Bug ID: 104467
           Summary: [12 Regression] ICE: in store_constructor, at
                    expr.cc:7199 with -mxop
           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: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 52391
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52391&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -mxop testcase.c 
during RTL pass: expand
testcase.c: In function 'foo':
testcase.c:5:1: internal compiler error: in store_constructor, at expr.cc:7199
    5 | foo (void)
      | ^~~
0x6ce957 store_constructor
        /repo/gcc-trunk/gcc/expr.cc:7199
0xfc0465 expand_constructor
        /repo/gcc-trunk/gcc/expr.cc:8657
0xfacf58 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /repo/gcc-trunk/gcc/expr.cc:10845
0xfac538 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /repo/gcc-trunk/gcc/expr.cc:11603
0xfb9c7b store_expr(tree_node*, rtx_def*, int, bool, bool)
        /repo/gcc-trunk/gcc/expr.cc:6087
0xfbb5dd expand_assignment(tree_node*, tree_node*, bool)
        /repo/gcc-trunk/gcc/expr.cc:5819
0xe71037 expand_gimple_stmt_1
        /repo/gcc-trunk/gcc/cfgexpand.cc:3930
0xe71037 expand_gimple_stmt
        /repo/gcc-trunk/gcc/cfgexpand.cc:4028
0xe77318 expand_gimple_basic_block
        /repo/gcc-trunk/gcc/cfgexpand.cc:6069
0xe794a7 execute
        /repo/gcc-trunk/gcc/cfgexpand.cc:6795
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-7126-20220209043854-gab0b5fbfe90-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r12-7126-20220209043854-gab0b5fbfe90-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.0.1 20220209 (experimental) (GCC)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/104467] [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop
  2022-02-09 14:24 [Bug target/104467] New: [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop zsojka at seznam dot cz
@ 2022-02-09 15:00 ` rguenth at gcc dot gnu.org
  2022-02-09 15:40 ` [Bug middle-end/104467] " ubizjak at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-02-09 15:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104467

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2022-02-09

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  We have a V2DI CTOR with two V2DI elements created via

#0  0x0000000001df5d5d in gimple_simplify_BIT_FIELD_REF (
    res_op=0x7fffffffcdf0, seq=0x0, 
    valueize=0xfa2bcc <follow_all_ssa_edges(tree_node*)>, code=..., 
    type=<vector_type 0x7ffff66b0540>, _p0=<ssa_name 0x7ffff6522e10 3>, 
    _p1=<integer_cst 0x7ffff65370c0>, _p2=<integer_cst 0x7ffff6517dc8>)
    at gimple-match.cc:198464
#1  0x0000000001dfaa7b in gimple_simplify (res_op=0x7fffffffcdf0, seq=0x0, 
    valueize=0xfa2bcc <follow_all_ssa_edges(tree_node*)>, code=..., 
    type=<vector_type 0x7ffff66b0540>, _p0=<ssa_name 0x7ffff6522e10 3>, 
    _p1=<integer_cst 0x7ffff65370c0>, _p2=<integer_cst 0x7ffff6517dc8>)
    at gimple-match.cc:200018
#2  0x0000000001acccd8 in gimple_resimplify3 (seq=0x0, res_op=0x7fffffffd5d0, 
    valueize=0xfa2bcc <follow_all_ssa_edges(tree_node*)>)
    at /home/rguenther/src/gcc3/gcc/gimple-match-head.cc:397
#3  0x0000000001acd2af in gimple_match_op::resimplify (this=0x7fffffffd5d0, 
    seq=0x0, valueize=0xfa2bcc <follow_all_ssa_edges(tree_node*)>)
    at /home/rguenther/src/gcc3/gcc/gimple-match-head.cc:516
#4  0x0000000001df46b5 in gimple_simplify_BIT_FIELD_REF (
    res_op=0x7fffffffd5d0, seq=0x0, 
    valueize=0xfa2bcc <follow_all_ssa_edges(tree_node*)>, code=..., 
    type=<vector_type 0x7ffff66b0540>, _p0=<ssa_name 0x7ffff6522e58 4>, 
    _p1=<integer_cst 0x7ffff65370c0>, _p2=<integer_cst 0x7ffff6517dc8>)
    at gimple-match.cc:198207
#5  0x0000000001dfaa7b in gimple_simplify (res_op=0x7fffffffd5d0, seq=0x0, 
    valueize=0xfa2bcc <follow_all_ssa_edges(tree_node*)>, code=..., 
    type=<vector_type 0x7ffff66b0540>, _p0=<ssa_name 0x7ffff6522e58 4>, 
    _p1=<integer_cst 0x7ffff65370c0>, _p2=<integer_cst 0x7ffff6517dc8>)
    at gimple-match.cc:200018
#6  0x0000000001acccd8 in gimple_resimplify3 (seq=0x0, res_op=0x7fffffffd6d0, 
    valueize=0xfa2bcc <follow_all_ssa_edges(tree_node*)>)
    at /home/rguenther/src/gcc3/gcc/gimple-match-head.cc:397
#7  0x0000000001acd2af in gimple_match_op::resimplify (this=0x7fffffffd6d0, 
    seq=0x0, valueize=0xfa2bcc <follow_all_ssa_edges(tree_node*)>)
    at /home/rguenther/src/gcc3/gcc/gimple-match-head.cc:516
#8  0x00000000017b48ff in tree_vec_extract (gsi=0x7fffffffda20, 
    type=<vector_type 0x7ffff66b0540>, t=<ssa_name 0x7ffff6522e58 4>, 
    bitsize=<integer_cst 0x7ffff65370c0>, bitpos=<integer_cst 0x7ffff6517dc8>)
    at /home/rguenther/src/gcc3/gcc/tree-vect-generic.cc:183
#9  0x00000000017b4a2c in do_binop (gsi=0x7fffffffda20, 
    inner_type=<vector_type 0x7ffff66b0540>, a=<ssa_name 0x7ffff6522e58 4>, 
--Type <RET> for more, q to quit, c to continue without paging--
    b=<ssa_name 0x7ffff6522ea0 5>, bitpos=<integer_cst 0x7ffff6517dc8>, 
    bitsize=<integer_cst 0x7ffff65370c0>, code=BIT_AND_EXPR, 
    type=<vector_type 0x7ffff66b00a8>)
    at /home/rguenther/src/gcc3/gcc/tree-vect-generic.cc:206
#10 0x00000000017b51d5 in expand_vector_piecewise (gsi=0x7fffffffda20, 
    f=0x17b49ba <do_binop(gimple_stmt_iterator*, tree, tree, tree, tree, tree,
tree_code, tree)>, type=<vector_type 0x7ffff66b00a8>, 
    inner_type=<vector_type 0x7ffff66b0540>, a=<ssa_name 0x7ffff6522e58 4>, 
    b=<ssa_name 0x7ffff6522ea0 5>, code=BIT_AND_EXPR, parallel_p=false, 
    ret_type=<vector_type 0x7ffff66b00a8>)
    at /home/rguenther/src/gcc3/gcc/tree-vect-generic.cc:337

I will have a look.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/104467] [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop
  2022-02-09 14:24 [Bug target/104467] New: [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop zsojka at seznam dot cz
  2022-02-09 15:00 ` [Bug target/104467] " rguenth at gcc dot gnu.org
@ 2022-02-09 15:40 ` ubizjak at gmail dot com
  2022-02-10  8:43 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ubizjak at gmail dot com @ 2022-02-09 15:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104467

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |middle-end

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Not a target issue.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/104467] [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop
  2022-02-09 14:24 [Bug target/104467] New: [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop zsojka at seznam dot cz
  2022-02-09 15:00 ` [Bug target/104467] " rguenth at gcc dot gnu.org
  2022-02-09 15:40 ` [Bug middle-end/104467] " ubizjak at gmail dot com
@ 2022-02-10  8:43 ` rguenth at gcc dot gnu.org
  2022-02-10  8:59 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-02-10  8:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104467

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Also ICEs with -mavx instead of -mxop.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/104467] [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop
  2022-02-09 14:24 [Bug target/104467] New: [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2022-02-10  8:43 ` rguenth at gcc dot gnu.org
@ 2022-02-10  8:59 ` rguenth at gcc dot gnu.org
  2022-02-10  9:55 ` cvs-commit at gcc dot gnu.org
  2022-02-10  9:56 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-02-10  8:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104467

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Caused by r12-139, I have a patch.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/104467] [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop
  2022-02-09 14:24 [Bug target/104467] New: [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2022-02-10  8:59 ` rguenth at gcc dot gnu.org
@ 2022-02-10  9:55 ` cvs-commit at gcc dot gnu.org
  2022-02-10  9:56 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-02-10  9:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104467

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:4a8083285c3edf50088a095870b217ab0881dff0

commit r12-7174-g4a8083285c3edf50088a095870b217ab0881dff0
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Feb 10 10:01:20 2022 +0100

    middle-end/104467 - fix vector extract simplification

    This fixes a bogus vector type used for a CTOR build as part of
    vector extract simplification.  The code failed to consider a
    CTOR of vector elements.

    2022-02-10  Richard Biener  <rguenther@suse.de>

            PR middle-end/104467
            * match.pd (vector extract simplification): Multiply the
            number of CTOR elements with the number of element elements.

            * gcc.dg/torture/pr104467.c: New testcase.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/104467] [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop
  2022-02-09 14:24 [Bug target/104467] New: [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2022-02-10  9:55 ` cvs-commit at gcc dot gnu.org
@ 2022-02-10  9:56 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-02-10  9:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104467

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-02-10  9:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-09 14:24 [Bug target/104467] New: [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop zsojka at seznam dot cz
2022-02-09 15:00 ` [Bug target/104467] " rguenth at gcc dot gnu.org
2022-02-09 15:40 ` [Bug middle-end/104467] " ubizjak at gmail dot com
2022-02-10  8:43 ` rguenth at gcc dot gnu.org
2022-02-10  8:59 ` rguenth at gcc dot gnu.org
2022-02-10  9:55 ` cvs-commit at gcc dot gnu.org
2022-02-10  9:56 ` 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).