https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116905
Bug ID: 116905 Summary: [15 Regression] ICE: tree check: expected none of vector_type, have vector_type in set_varying, at value-range.h:1140 with -mavx -frounding-math and _Float16 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization 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 59237 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59237&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -mavx -frounding-math testcase.c during GIMPLE pass: veclower testcase.c: In function 'foo': testcase.c:6:1: internal compiler error: tree check: expected none of vector_type, have vector_type in set_varying, at value-range.h:1140 6 | foo() | ^~~ 0x2c44e6e internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0x8c640c tree_not_check_failed(tree_node const*, char const*, int, char const*, ...) /repo/gcc-trunk/gcc/tree.cc:9040 0xf2ec1f tree_not_check(tree_node*, char const*, int, char const*, tree_code) /repo/gcc-trunk/gcc/tree.h:3642 0xf2ec1f irange::set_varying(tree_node*) /repo/gcc-trunk/gcc/value-range.h:1140 0x2b8b817 vect_get_range_info(tree_node*, generic_wide_int<wide_int_storage>*, generic_wide_int<wide_int_storage>*) /repo/gcc-trunk/gcc/tree-vect-patterns.cc:76 0x1858f49 supportable_indirect_convert_operation(code_helper, tree_node*, tree_node*, vec<std::pair<tree_node*, tree_code>, va_heap, vl_ptr>*, tree_node*) /repo/gcc-trunk/gcc/tree-vect-stmts.cc:14795 0x184b01f expand_vector_conversion /repo/gcc-trunk/gcc/tree-vect-generic.cc:1877 0x184b01f expand_vector_operations_1 /repo/gcc-trunk/gcc/tree-vect-generic.cc:2123 0x184b01f expand_vector_operations /repo/gcc-trunk/gcc/tree-vect-generic.cc:2400 0x184b01f execute /repo/gcc-trunk/gcc/tree-vect-generic.cc:2454 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-r15-3954-20240930084205-g3f8b1b21f37-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.0.0/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 --enable-libsanitizer --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r15-3954-20240930084205-g3f8b1b21f37-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240930 (experimental) (GCC)