https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125234
Bug ID: 125234
Summary: wrong code for int-bwise-opt
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: kristerw at gcc dot gnu.org
Blocks: 118443
Target Milestone: ---
The following is miscompiled for x86_64 with -O1:
int f3(int a, int b)
{
return (a != b) & ((a | b) == 0);
}
int
main()
{
if (f3(0, 0))
__builtin_abort ();
}
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118443
[Bug 118443] [Meta bug] Bugs triggered by and blocking more smtgcc testing