public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/17886] New: variable rotate and long long rotate should be better optimized
@ 2004-10-08  0:04 ak at muc dot de
  2004-10-08  0:05 ` [Bug middle-end/17886] " ak at muc dot de
                   ` (12 more replies)
  0 siblings, 13 replies; 24+ messages in thread
From: ak at muc dot de @ 2004-10-08  0:04 UTC (permalink / raw)
  To: gcc-bugs

gcc can detect the (x << y)|(x >> (bitwidth-y)) idiom for rotate and convert
it into the machine rotate instruction. But it only works when y is a constant
and is not long long.

Enhancement request is to handle it for long long too (on 32bit) and
to handle variable shifts.

The attached test case should use rol in f1-f4

-- 
           Summary: variable rotate and long long rotate should be better
                    optimized
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ak at muc dot de
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i386-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17886


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2005-11-11  1:26 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-17886-7834@http.gcc.gnu.org/bugzilla/>
2005-10-04 18:59 ` [Bug middle-end/17886] variable rotate and long long rotate should be better optimized michael dot meissner at amd dot com
2005-10-04 19:51 ` michael dot meissner at amd dot com
2005-10-04 20:06 ` michael dot meissner at amd dot com
2005-10-04 20:20 ` ak at muc dot de
2005-10-04 20:32 ` michael dot meissner at amd dot com
2005-10-04 20:35 ` michael dot meissner at amd dot com
2005-10-04 20:39 ` ak at muc dot de
2005-10-04 20:46 ` michael dot meissner at amd dot com
2005-10-25 21:38 ` cvs-commit at gcc dot gnu dot org
2005-11-10 22:44 ` tkho at ucla dot edu
2005-11-11  1:26 ` tkho at ucla dot edu
2004-10-08  0:04 [Bug middle-end/17886] New: " ak at muc dot de
2004-10-08  0:05 ` [Bug middle-end/17886] " ak at muc dot de
2004-10-08  0:07 ` steven at gcc dot gnu dot org
2004-10-08  0:16 ` pinskia at gcc dot gnu dot org
2005-09-28  0:15 ` mmitchel at gcc dot gnu dot org
2005-09-28  0:18 ` mmitchel at gcc dot gnu dot org
2005-09-28  0:57 ` mmitchel at gcc dot gnu dot org
2005-09-28  1:53 ` mmitchel at gcc dot gnu dot org
2005-09-28  2:11 ` mmitchel at gcc dot gnu dot org
2005-09-28 16:24 ` mmitchel at gcc dot gnu dot org
2005-09-29  3:32 ` cvs-commit at gcc dot gnu dot org
2005-09-29  3:52 ` mmitchel at gcc dot gnu dot org
2005-09-29  4:36 ` dank at kegel dot com
2005-09-29  5:05 ` mmitchel at gcc dot gnu dot org

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).