https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104478
Bug ID: 104478 Summary: [12 Regression] ICE: in native_encode_rtx, at simplify-rtx.cc:6862 with -mcpu=neoverse-v1 -frounding-math -msve-vector-bits=256 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: aarch64-unknown-linux-gnu Created attachment 52400 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52400&action=edit reduced testcase Compiler output: $ aarch64-unknown-linux-gnu-gcc -mcpu=neoverse-v1 -frounding-math -msve-vector-bits=256 testcase.c during RTL pass: expand testcase.c: In function 'foo': testcase.c:6:10: internal compiler error: in native_encode_rtx, at simplify-rtx.cc:6862 6 | return (F){0, 6270, 0, 0, 0, 0, 0, 0, 3229, 0, 40}; | ^ 0x7aefdc native_encode_rtx(machine_mode, rtx_def*, vec<unsigned char, va_heap, vl_ptr>&, unsigned int, unsigned int) /repo/gcc-trunk/gcc/simplify-rtx.cc:6862 0x110fe2c native_encode_rtx(machine_mode, rtx_def*, vec<unsigned char, va_heap, vl_ptr>&, unsigned int, unsigned int) /repo/gcc-trunk/gcc/simplify-rtx.cc:6900 0x1110ad9 simplify_const_vector_subreg /repo/gcc-trunk/gcc/simplify-rtx.cc:7249 0x11249bb simplify_context::simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<2u, unsigned long>) /repo/gcc-trunk/gcc/simplify-rtx.cc:7370 0x1126a91 simplify_context::simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, poly_int<2u, unsigned long>) /repo/gcc-trunk/gcc/simplify-rtx.cc:7602 0x14d4ef0 simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, poly_int<2u, unsigned long>) /repo/gcc-trunk/gcc/rtl.h:3534 0x14d4ef0 aarch64_expand_sve_const_vector /repo/gcc-trunk/gcc/config/aarch64/aarch64.cc:5545 0x14d6fa2 aarch64_expand_mov_immediate(rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/config/aarch64/aarch64.cc:6075 0x19bf387 gen_movvnx8qi(rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/config/aarch64/aarch64-sve.md:662 0xd5e634 rtx_insn* insn_gen_fn::operator()<rtx_def*, rtx_def*>(rtx_def*, rtx_def*) const /repo/gcc-trunk/gcc/recog.h:407 0xd5e634 emit_move_insn_1(rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/expr.cc:3955 0xd5ea8d emit_move_insn(rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/expr.cc:4125 0x14d2005 aarch64_sve_expand_vector_init_handle_trailing_constants /repo/gcc-trunk/gcc/config/aarch64/aarch64.cc:21171 0x14d3957 aarch64_sve_expand_vector_init /repo/gcc-trunk/gcc/config/aarch64/aarch64.cc:21293 0x14d3b33 aarch64_sve_expand_vector_init /repo/gcc-trunk/gcc/config/aarch64/aarch64.cc:21333 0x14d3e32 aarch64_sve_expand_vector_init(rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/config/aarch64/aarch64.cc:21377 0x19e03bc ??? /repo/gcc-trunk/gcc/config/aarch64/aarch64-sve.md:2639 0xd6c418 rtx_insn* insn_gen_fn::operator()<rtx_def*, rtx_def*>(rtx_def*, rtx_def*) const /repo/gcc-trunk/gcc/recog.h:407 0xd6c418 store_constructor /repo/gcc-trunk/gcc/expr.cc:7319 0xd6ebe8 expand_constructor /repo/gcc-trunk/gcc/expr.cc:8657 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. $ aarch64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-7143-20220209111047-ged3fea09b18-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/12.0.1/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog --with-ppl --with-isl --with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu --with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld --with-as=/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r12-7143-20220209111047-ged3fea09b18-checking-yes-rtl-df-extra-aarch64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.1 20220209 (experimental) (GCC)