https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111542
Richard Biener changed:
What|Removed |Added
Priority|P3 |P2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111542
--- Comment #3 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #2)
> Match pattern:
> ```
> (for bitop (bit_ior bit_and)
> cmp1 (eq ne )
> cmp2 (ne eq )
> (simplify
> (bitop:c
>(cmp1 @1 intege
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111542
--- Comment #2 from Andrew Pinski ---
Note IOR with != 0 has the same issue.
Full testcase:
```
_Bool f_and(int x,int y)
{
_Bool a = x == 0;
_Bool b = y == 0;
_Bool t = a & b;
return t & !a;
}
_Bool f_or(int x,int y)
{
_Bool a = x !=
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111542
Andrew Pinski changed:
What|Removed |Added
Target Milestone|--- |14.0
Summary|[11/12/13/14 Re
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111542
Andrew Pinski changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot
gnu.org