public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104496] New: [12 Regression] ICE: in as_a, at machmode.h:365 with -O -mgeneral-regs-only -msse
@ 2022-02-11  5:45 zsojka at seznam dot cz
  2022-02-11  6:52 ` [Bug target/104496] " crazylht at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2022-02-11  5:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104496
           Summary: [12 Regression] ICE: in as_a, at machmode.h:365 with
                    -O -mgeneral-regs-only -msse
           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 52411
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52411&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -mgeneral-regs-only -msse testcase.c 
during GIMPLE pass: ccp
testcase.c: In function 'foo':
testcase.c:9:1: internal compiler error: in as_a, at machmode.h:365
    9 | }
      | ^
0x785e9a scalar_int_mode as_a<scalar_int_mode>(machine_mode)
        /repo/gcc-trunk/gcc/machmode.h:365
0x788612 scalar_mode as_a<scalar_mode>(machine_mode)
        /repo/gcc-trunk/gcc/tree.h:3568
0x788612 layout_type(tree_node*)
        /repo/gcc-trunk/gcc/stor-layout.cc:2402
0x16763a9 make_vector_type
        /repo/gcc-trunk/gcc/tree.cc:8945
0x16764dd make_vector_type
        /repo/gcc-trunk/gcc/tree.cc:8943
0x10cb3a0 vectorized_internal_fn_supported_p(internal_fn, tree_node*)
        /repo/gcc-trunk/gcc/internal-fn.cc:4401
0x186815f gimple_simplify_VEC_COND_EXPR
        /repo/build-gcc-trunk-amd64/gcc/gimple-match.cc:195745
0x187abb2 gimple_resimplify3
        /repo/gcc-trunk/gcc/gimple-match-head.cc:397
0x19184e5 gimple_simplify_BIT_IOR_EXPR
        /repo/build-gcc-trunk-amd64/gcc/gimple-match.cc:115459
0x185cd22 gimple_resimplify2
        /repo/gcc-trunk/gcc/gimple-match-head.cc:321
0x18bbe10 gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node*
(*)(tree_node*), tree_node* (*)(tree_node*))
        /repo/gcc-trunk/gcc/gimple-match-head.cc:1113
0x1044339 gimple_fold_stmt_to_constant_1(gimple*, tree_node* (*)(tree_node*),
tree_node* (*)(tree_node*))
        /repo/gcc-trunk/gcc/gimple-fold.cc:7328
0x14b5b6f ccp_fold
        /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:1289
0x14b5b6f evaluate_stmt
        /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:2208
0x14b7ebd visit_assignment
        /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:2841
0x1556fb3 ssa_propagation_engine::simulate_stmt(gimple*)
        /repo/gcc-trunk/gcc/tree-ssa-propagate.cc:230
0x155728a ssa_propagation_engine::simulate_block(basic_block_def*)
        /repo/gcc-trunk/gcc/tree-ssa-propagate.cc:337
0x15576a3 ssa_propagation_engine::ssa_propagate()
        /repo/gcc-trunk/gcc/tree-ssa-propagate.cc:504
0x14aa200 do_ssa_ccp
        /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:2960
0x14aa200 execute
        /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:3004
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-7186-20220210101436-gb25a7c05f12-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-7186-20220210101436-gb25a7c05f12-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.0.1 20220210 (experimental) (GCC)

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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-11  5:45 [Bug target/104496] New: [12 Regression] ICE: in as_a, at machmode.h:365 with -O -mgeneral-regs-only -msse zsojka at seznam dot cz
2022-02-11  6:52 ` [Bug target/104496] " crazylht at gmail dot com
2022-02-11  7:40 ` crazylht at gmail dot com
2022-02-11  7:44 ` crazylht at gmail dot com
2022-02-11  9:24 ` rguenth at gcc dot gnu.org
2022-02-11 10:28 ` cvs-commit at gcc dot gnu.org
2022-02-11 10: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).