public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104112] New: ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512
@ 2022-01-19  8:21 gilles.gouaillardet at gmail dot com
  2022-01-19  8:23 ` [Bug target/104112] " gilles.gouaillardet at gmail dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: gilles.gouaillardet at gmail dot com @ 2022-01-19  8:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104112
           Summary: ICE with -Ofast -march=armv8.2-a+sve
                    -msve-vector-bits=512
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gilles.gouaillardet at gmail dot com
  Target Milestone: ---

Created attachment 52226
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52226&action=edit
a simple reproducer

The attached reproducer (trimmed from BLAS) can be used to evidence a crash of
the compiler:

$ g++ -march=armv8.2-a+sve -msve-vector-bits=512 -Ofast -c boom.cpp 
during GIMPLE pass: vect
boom.cpp: In function ?void boom(int, double*, double*)?:
boom.cpp:4:1: internal compiler error: Segmentation fault
    4 | boom(int n,
      | ^~~~
0x10436f3 crash_signal
        ../.././gcc/toplev.c:328
0x12f86ec tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
        ../.././gcc/tree.h:3495
0x12f86ec vect_create_partial_epilog
        ../.././gcc/tree-vect-loop.c:4953
0x13050ff vect_transform_cycle_phi(_loop_vec_info*, _stmt_vec_info*, gimple**,
_slp_tree*, _slp_instance*)
        ../.././gcc/tree-vect-loop.c:7728
0x12f562b vect_transform_stmt(vec_info*, _stmt_vec_info*,
gimple_stmt_iterator*, _slp_tree*, _slp_instance*)
        ../.././gcc/tree-vect-stmts.c:10999
0x1311e9b vect_transform_loop(_loop_vec_info*, gimple*)
        ../.././gcc/tree-vect-loop.c:9686
0x13416db try_vectorize_loop_1
        ../.././gcc/tree-vectorizer.c:1103
0x13418b7 try_vectorize_loop_1
        ../.././gcc/tree-vectorizer.c:1141
0x1342317 vectorize_loops()
        ../.././gcc/tree-vectorizer.c:1242
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.


FWIW, g++ works just fine with the slightly rewritten (e.g. do not use a local
variable) noboom.cpp

Based on my snapshots, the issue occurred first between 20210711 and 20210718
(I am now running a git bisect to point to a suspect commit)

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

end of thread, other threads:[~2022-01-19 13:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-19  8:21 [Bug target/104112] New: ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 gilles.gouaillardet at gmail dot com
2022-01-19  8:23 ` [Bug target/104112] " gilles.gouaillardet at gmail dot com
2022-01-19  8:52 ` [Bug target/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95 marxin at gcc dot gnu.org
2022-01-19 10:58 ` [Bug tree-optimization/104112] " rguenth at gcc dot gnu.org
2022-01-19 11:13 ` rguenth at gcc dot gnu.org
2022-01-19 11:15 ` rguenth at gcc dot gnu.org
2022-01-19 11:29 ` rguenth at gcc dot gnu.org
2022-01-19 11:34 ` rguenth at gcc dot gnu.org
2022-01-19 11:57 ` rguenth at gcc dot gnu.org
2022-01-19 12:11 ` rsandifo at gcc dot gnu.org
2022-01-19 12:12 ` rguenth at gcc dot gnu.org
2022-01-19 12:43 ` rguenth at gcc dot gnu.org
2022-01-19 13:55 ` cvs-commit at gcc dot gnu.org
2022-01-19 13:55 ` 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).