[Bug target/116013] Missed optimization opportunity with andn involving consts
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 23 02:27:00 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116013
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=111949
Last reconfirmed| |2024-07-23
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The combine issue is:
```
Failed to match this instruction:
(set (reg:DI 101 [ _3 ])
(and:DI (not:DI (reg:DI 104))
(const_int -9187201950435737472 [0x8080808080808080])))
Successfully matched this instruction:
(set (reg:DI 102 [ _1 ])
(not:DI (reg:DI 104)))
Failed to match this instruction:
(set (reg:DI 101 [ _3 ])
(and:DI (reg:DI 102 [ _1 ])
(const_int -9187201950435737472 [0x8080808080808080])))
```
which is very similar to PR 111949 and similar to PR 115086.
More information about the Gcc-bugs
mailing list