[Bug target/115086] bic is not used when the non-not part is a constant

2024-07-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 --- Comment #14 from Andrew Pinski --- Patch set submitted: https://gcc.gnu.org/pipermail/gcc-patches/2024-July/658219.html https://gcc.gnu.org/pipermail/gcc-patches/2024-July/658218.html https://gcc.gnu.org/pipermail/gcc-patches/2024-July/65822

[Bug target/115086] bic is not used when the non-not part is a constant

2024-07-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 Bug 115086 depends on bug 115961, which changed state. Bug 115961 Summary: [15 Regression] wrong code on llvm-18.1.8 since r15-1936-g80e446e829d818 with bitfields less than the type mode precision https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115

[Bug target/115086] bic is not used when the non-not part is a constant

2024-07-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 Andrew Pinski changed: What|Removed |Added Depends on||115961 --- Comment #13 from Andrew Pins

[Bug target/115086] bic is not used when the non-not part is a constant

2024-07-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 Andrew Pinski changed: What|Removed |Added Attachment #58726|0 |1 is obsolete|

[Bug target/115086] bic is not used when the non-not part is a constant

2024-07-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 --- Comment #11 from Andrew Pinski --- Created attachment 58728 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58728&action=edit Patch that goes on top of the rest This will fix the testcase in comment #10. It does fix the vector type one

[Bug target/115086] bic is not used when the non-not part is a constant

2024-07-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 --- Comment #10 from Andrew Pinski --- Another testcase: ``` unsigned test1(unsigned value) { return ~(value | 0xf); } ``` This one is reduced from PR 116013 .

[Bug target/115086] bic is not used when the non-not part is a constant

2024-07-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 --- Comment #9 from Andrew Pinski --- Created attachment 58726 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58726&action=edit Current set of patches This is the current set of patches but still need the optab name changes which I will w

[Bug target/115086] bic is not used when the non-not part is a constant

2024-07-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 Andrew Pinski changed: What|Removed |Added See Also||https://github.com/llvm/llv

[Bug target/115086] bic is not used when the non-not part is a constant

2024-07-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 --- Comment #7 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > Note andc optab was added with r15-1890-gf379596e0ba99d . Note the c here will need to be changed as there is a mode called csi (which is the complex si mode wh

[Bug target/115086] bic is not used when the non-not part is a constant

2024-07-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 --- Comment #6 from Andrew Pinski --- Note andc optab was added with r15-1890-gf379596e0ba99d .

[Bug target/115086] bic is not used when the non-not part is a constant

2024-05-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > So looking into this a little bit. There are many different patterns which > might need to be fixed. Maybe there is a better way of implementing this > into forw

[Bug target/115086] bic is not used when the non-not part is a constant

2024-05-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 --- Comment #4 from Andrew Pinski --- So looking into this a little bit. There are many different patterns which might need to be fixed. Maybe there is a better way of implementing this into forwprop. Let see if that is doable. But that won't be

[Bug target/115086] bic is not used when the non-not part is a constant

2024-05-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 --- Comment #3 from Andrew Pinski --- (In reply to Richard Earnshaw from comment #2) > And perhaps more importantly the mov can even be hoisted outside of a loop. That won't be happening right away, see https://gcc.gnu.org/bugzilla/show_bug.cgi

[Bug target/115086] bic is not used when the non-not part is a constant

2024-05-14 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 --- Comment #2 from Richard Earnshaw --- And perhaps more importantly the mov can even be hoisted outside of a loop.

[Bug target/115086] bic is not used when the non-not part is a constant

2024-05-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115086 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|