https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118472
Bug ID: 118472
Summary: [15 Regression] ICE : tree check: expected none of
vector_type, have vector_type in operand_equal_p, at
fold-const.cc:3749
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
Target Milestone: ---
Created attachment 60151
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60151&action=edit
preprocessed source
seen with trunk 20250112 on x86_64-linux-gnu building the simde package.
Lowering optimization to -O2 avoids the issue.
$ gcc -c -g -O3 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-fstack-protector-strong -fstack-clash-protection -fcf-protection=full
-fopenmp-simd -fasynchronous-unwind-tables mmx.i
during GIMPLE pass: forwprop
../test/x86/mmx.c: In function 'test_simde_m_pcmpeqw':
../test/x86/mmx.c:1122:1: internal compiler error: tree check: expected none of
vector_type, have vector_type in operand_equal_p, at fold-const.cc:3749
0x2e8fd26 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
???:0
0x2ea5af3 internal_error(char const*, ...)
???:0
0x904314 tree_not_check_failed(tree_node const*, char const*, int, char const*,
...)
???:0
0x123ac1d operand_compare::verify_hash_value(tree_node const*, tree_node
const*, unsigned int, bool*)
???:0
0x123ad16 operand_compare::operand_equal_p(tree_node*, tree_node const*,
tree_node*, tree_node const*, unsigned int)
???:0
0x2185775 generic_simplify_EQ_EXPR(unsigned long, tree_code, tree_node*,
tree_node*, tree_node*)
???:0
0x125341d fold_binary_loc(unsigned long, tree_code, tree_node*, tree_node*,
tree_node*)
???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.