[Bug target/120553] Improve code to select between -1 and various values

2025-07-15 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 Jeffrey A. Law changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |law at gcc dot gnu.org --- Comm

[Bug target/120553] Improve code to select between -1 and various values

2025-06-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 Uroš Bizjak changed: What|Removed |Added Last reconfirmed||2025-06-05 Status|UNCONFIRMED

[Bug target/120553] Improve code to select between -1 and various values

2025-06-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 --- Comment #8 from Uroš Bizjak --- (In reply to Richard Biener from comment #1) > might be also interesting on x86-64 when using bts can use a smaller > immediate than the now used orq and thus improve instruction size (but it > clobbers flags)

[Bug target/120553] Improve code to select between -1 and various values

2025-06-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 --- Comment #7 from GCC Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:ed57e5de634eda91f32e0e61724d8f103ef648dd commit r16-1196-ged57e5de634eda91f32e0e61724d8f103ef648dd Author: Uros Bizjak Date: Thu J

[Bug target/120553] Improve code to select between -1 and various values

2025-06-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 --- Comment #5 from Uroš Bizjak --- This patch fixes the non-optimal testcase in Comment #4 for x86_64: --cut here-- diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 40b43cf092a..8eee44756eb 100644 --- a/gcc/config/i386/i386

[Bug target/120553] Improve code to select between -1 and various values

2025-06-05 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 --- Comment #6 from Jeffrey A. Law --- Note there's a variety of other twiddles that can be done here. If we want to select between -1 and any simm12, then that's srai+ori. We can select between any constant with a single bit off and 0 using sr

[Bug target/120553] Improve code to select between -1 and various values

2025-06-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 --- Comment #4 from Uroš Bizjak --- (In reply to Uroš Bizjak from comment #3) > (In reply to Richard Biener from comment #1) > > might be also interesting on x86-64 when using bts can use a smaller > > immediate than the now used orq and thus im

[Bug target/120553] Improve code to select between -1 and various values

2025-06-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 --- Comment #3 from Uroš Bizjak --- (In reply to Richard Biener from comment #1) > might be also interesting on x86-64 when using bts can use a smaller > immediate than the now used orq and thus improve instruction size (but it > clobbers flags)

[Bug target/120553] Improve code to select between -1 and various values

2025-06-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 --- Comment #2 from Uroš Bizjak --- (In reply to Richard Biener from comment #1) > might be also interesting on x86-64 when using bts can use a smaller > immediate than the now used orq and thus improve instruction size (but it > clobbers flags)

[Bug target/120553] Improve code to select between -1 and various values

2025-06-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 Richard Biener changed: What|Removed |Added Version|unknown |16.0 Keywords|