[Bug target/113837] Zeroing unused bits in _BitInt can improve codegen

2024-02-08 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113837 --- Comment #9 from H.J. Lu --- (In reply to Jakub Jelinek from comment #7) > (In reply to H.J. Lu from comment #5) > > (In reply to Jakub Jelinek from comment #1) > > > Ugh no, please don't. > > > This is significant ABI change. > > > First of

[Bug target/113837] Zeroing unused bits in _BitInt can improve codegen

2024-02-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113837 --- Comment #8 from Jakub Jelinek --- BTW, I guess we should have some RTL optimization (possibly backend combiner pattern) to be able to optimize stuff like sall$7, y(%rip), %eax sall$7, %edi cmpl%eax, %edi

[Bug target/113837] Zeroing unused bits in _BitInt can improve codegen

2024-02-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113837 --- Comment #7 from Jakub Jelinek --- (In reply to H.J. Lu from comment #5) > (In reply to Jakub Jelinek from comment #1) > > Ugh no, please don't. > > This is significant ABI change. > > First of all, zeroing even for signed _BitInt is very

[Bug target/113837] Zeroing unused bits in _BitInt can improve codegen

2024-02-08 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113837 --- Comment #6 from H.J. Lu --- (In reply to Jakub Jelinek from comment #4) > (In reply to H.J. Lu from comment #3) > > (In reply to Jakub Jelinek from comment #2) > > > OT, what is the state of the ia32 _BitInt ABI? I'd really like to enable

[Bug target/113837] Zeroing unused bits in _BitInt can improve codegen

2024-02-08 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113837 --- Comment #5 from H.J. Lu --- (In reply to Jakub Jelinek from comment #1) > Ugh no, please don't. > This is significant ABI change. > First of all, zeroing even for signed _BitInt is very weird, sign extension > for that case is more natural,

[Bug target/113837] Zeroing unused bits in _BitInt can improve codegen

2024-02-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113837 --- Comment #4 from Jakub Jelinek --- (In reply to H.J. Lu from comment #3) > (In reply to Jakub Jelinek from comment #2) > > OT, what is the state of the ia32 _BitInt ABI? I'd really like to enable it > > in GCC 14 even for ia32 (and perhaps

[Bug target/113837] Zeroing unused bits in _BitInt can improve codegen

2024-02-08 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113837 --- Comment #3 from H.J. Lu --- (In reply to Jakub Jelinek from comment #2) > OT, what is the state of the ia32 _BitInt ABI? I'd really like to enable it > in GCC 14 even for ia32 (and perhaps -mx32 if you care about that case). I think we

[Bug target/113837] Zeroing unused bits in _BitInt can improve codegen

2024-02-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113837 --- Comment #2 from Jakub Jelinek --- OT, what is the state of the ia32 _BitInt ABI? I'd really like to enable it in GCC 14 even for ia32 (and perhaps -mx32 if you care about that case).

[Bug target/113837] Zeroing unused bits in _BitInt can improve codegen

2024-02-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113837 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment