[Bug middle-end/97743] Failure to optimize boolean multiplication to select

2021-08-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97743 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/97743] Failure to optimize boolean multiplication to select

2021-08-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97743 --- Comment #6 from Andrew Pinski --- What about: movzbl %dil, %eax negl%eax andl$743, %eax That would be 3 cycles, definitely better than the cmov case. maybe one cycle better than the imul case. It all depends

[Bug middle-end/97743] Failure to optimize boolean multiplication to select

2020-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97743 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > What about: > (-B)&743 > Is that faster? Never mind I see it was not :)

[Bug middle-end/97743] Failure to optimize boolean multiplication to select

2020-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97743 --- Comment #4 from Andrew Pinski --- What about: (-B)&743 Is that faster?

[Bug middle-end/97743] Failure to optimize boolean multiplication to select

2020-11-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97743 --- Comment #3 from Richard Biener --- imull on core & zen is 3-4 cycles latency (no idea if they special-case 0 or 1 values somehow, guess not).

[Bug middle-end/97743] Failure to optimize boolean multiplication to select

2020-11-06 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97743 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug middle-end/97743] Failure to optimize boolean multiplication to select

2020-11-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97743 Richard Biener changed: What|Removed |Added Last reconfirmed||2020-11-06 Status|UNCONFIRM