https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123040
Bug ID: 123040
Summary: [15/16 regression] ICE: gimple check: expected
gimple_assign(error_mark), have
gimple_call(vec_duplicate_expr) in
gimple_assign_rhs_code, at gimple.h:2919
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Target: riscv64-*-*
Created attachment 63010
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63010&action=edit
Test from highway
$ gcc/xg++ -B gcc/ -O2 -march=rv64gcv1p0 -std=c++20 -S arithmetic_test.ii
during GIMPLE pass: fre
arithmetic_test.ii: In function ‘void MaskedAbs()’:
arithmetic_test.ii:50:6: internal compiler error: gimple check: expected
gimple_assign(error_mark), have gimple_call(vec_duplicate_expr) in
gimple_assign_rhs_code, at gimple.h:2919
50 | void MaskedAbs() {
| ^~~~~~~~~
0x32be10c internal_error(char const*, ...)
../../gcc/gcc/diagnostic-global-context.cc:787
0xcf8cf7 gimple_check_failed(gimple const*, char const*, int, char const*,
gimple_code, tree_code)
../../gcc/gcc/gimple.cc:1396
0xdc1b2e gassign const* GIMPLE_CHECK2<gassign const*>(gimple const*, char
const*, int, char const*)
../../gcc/gcc/gimple.h:70
0xdc1b2e gassign const* GIMPLE_CHECK2<gassign const*>(gimple const*, char
const*, int, char const*)
../../gcc/gcc/gimple.h:57
0xdc1b2e gimple_assign_rhs_code(gimple const*)
../../gcc/gcc/gimple.h:2919
0xdc1c92 gimple_assign_rhs_code(gimple const*)
../../gcc/gcc/tree.h:3751
0xdc1c92 vn_nary_length_from_stmt(gimple*)
../../gcc/gcc/tree-ssa-sccvn.cc:4508
0x1b35b97 vn_nary_op_lookup_stmt(gimple*, vn_nary_op_s**)
../../gcc/gcc/tree-ssa-sccvn.cc:4617
0x1b35d78 vn_nary_build_or_lookup_1
../../gcc/gcc/tree-ssa-sccvn.cc:2560
0x1b43523 vn_nary_build_or_lookup
../../gcc/gcc/tree-ssa-sccvn.cc:2606
0x1b43523 visit_reference_op_load
../../gcc/gcc/tree-ssa-sccvn.cc:6082
0x1b43523 visit_stmt
../../gcc/gcc/tree-ssa-sccvn.cc:6582
0x1b43e1e process_bb
../../gcc/gcc/tree-ssa-sccvn.cc:8440
0x1b4590e do_rpo_vn_1
../../gcc/gcc/tree-ssa-sccvn.cc:9026
0x1b4736b execute
../../gcc/gcc/tree-ssa-sccvn.cc:9187