https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123069
Bug ID: 123069
Summary: [16 Regression] ICE: tree check: expected none of
vector_type, have vector_type in build_int_cst, at
tree.cc:1649 with vector multiply
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
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 63019
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63019&action=edit
reduced testcase
Compiler output:
$ aarch64-unknown-linux-gnu-gcc -O testcase.c
during GIMPLE pass: veclower2
testcase.c: In function 'foo':
testcase.c:4:1: internal compiler error: tree check: expected none of
vector_type, have vector_type in build_int_cst, at tree.cc:1649
4 | foo ()
| ^~~
0x282b78d internal_error(char const*, ...)
/repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0x9a99fc tree_not_check_failed(tree_node const*, char const*, int, char const*,
...)
/repo/gcc-trunk/gcc/tree.cc:9227
0x9b31e3 tree_not_check(tree_node*, char const*, int, char const*, tree_code)
/repo/gcc-trunk/gcc/tree.h:3760
0x9b31e3 build_int_cst(tree_node*, poly_int<2u, long>)
/repo/gcc-trunk/gcc/tree.cc:1649
0x1783014 expand_vector_mult
/repo/gcc-trunk/gcc/tree-vect-generic.cc:630
0x1787421 expand_vector_operation
/repo/gcc-trunk/gcc/tree-vect-generic.cc:1358
0x1788a84 expand_vector_operations_1
/repo/gcc-trunk/gcc/tree-vect-generic.cc:2437
0x1788a84 expand_vector_operations
/repo/gcc-trunk/gcc/tree-vect-generic.cc:2468
0x1788a84 execute
/repo/gcc-trunk/gcc/tree-vect-generic.cc:2520
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-20251208154613-r16-5963-gfdf36f5fa3ebbd-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/16.0.0/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-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 --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20251208154613-r16-5963-gfdf36f5fa3ebbd-checking-yes-rtl-df-extra-aarch64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251208 (experimental) (GCC)