public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/17886] variable rotate and unsigned long long rotate should be better optimized [not found] <bug-17886-4@http.gcc.gnu.org/bugzilla/> @ 2013-01-14 22:33 ` andi-gcc at firstfloor dot org 2013-01-14 22:38 ` andi-gcc at firstfloor dot org 2023-10-10 18:38 ` roger at nextmovesoftware dot com 2 siblings, 0 replies; 3+ messages in thread From: andi-gcc at firstfloor dot org @ 2013-01-14 22:33 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17886 --- Comment #25 from Andi Kleen <andi-gcc at firstfloor dot org> 2013-01-14 22:32:59 UTC --- Also i need to look more closely, but most likely the C++ atomic code should be changed to avoid this situation. This would give much better code on x86 in any case even without elision. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/17886] variable rotate and unsigned long long rotate should be better optimized [not found] <bug-17886-4@http.gcc.gnu.org/bugzilla/> 2013-01-14 22:33 ` [Bug middle-end/17886] variable rotate and unsigned long long rotate should be better optimized andi-gcc at firstfloor dot org @ 2013-01-14 22:38 ` andi-gcc at firstfloor dot org 2023-10-10 18:38 ` roger at nextmovesoftware dot com 2 siblings, 0 replies; 3+ messages in thread From: andi-gcc at firstfloor dot org @ 2013-01-14 22:38 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17886 --- Comment #26 from Andi Kleen <andi-gcc at firstfloor dot org> 2013-01-14 22:37:34 UTC --- Sorry commented on the wrong bug. ignore. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/17886] variable rotate and unsigned long long rotate should be better optimized [not found] <bug-17886-4@http.gcc.gnu.org/bugzilla/> 2013-01-14 22:33 ` [Bug middle-end/17886] variable rotate and unsigned long long rotate should be better optimized andi-gcc at firstfloor dot org 2013-01-14 22:38 ` andi-gcc at firstfloor dot org @ 2023-10-10 18:38 ` roger at nextmovesoftware dot com 2 siblings, 0 replies; 3+ messages in thread From: roger at nextmovesoftware dot com @ 2023-10-10 18:38 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17886 Roger Sayle <roger at nextmovesoftware dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roger at nextmovesoftware dot com Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #27 from Roger Sayle <roger at nextmovesoftware dot com> --- I believe that this issue has been fixed (for a long time). For Andi's testcases in comment #3, -fdump-tree-optimized reveals all these cases are perceived as rotations by the early middle-end. long long unsigned int f (long long unsigned int x, int y) { return x_1(D) r<< y_2(D); } unsigned int f2 (unsigned int x, int y) { return x_1(D) r<< y_2(D); } long long unsigned int f3 (long long unsigned int x) { return x_1(D) r>> 55; } long unsigned int f4 (unsigned int x) { return x_1(D) r>> 22; } ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-10 18:38 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-17886-4@http.gcc.gnu.org/bugzilla/> 2013-01-14 22:33 ` [Bug middle-end/17886] variable rotate and unsigned long long rotate should be better optimized andi-gcc at firstfloor dot org 2013-01-14 22:38 ` andi-gcc at firstfloor dot org 2023-10-10 18:38 ` roger at nextmovesoftware dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).