public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-22568-11024@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/22568] New: Should use cmov in some stituations
@ 2005-07-20 14:21 arndt at jjj dot de
  2005-07-20 15:14 ` [Bug rtl-optimization/22568] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: arndt at jjj dot de @ 2005-07-20 14:21 UTC (permalink / raw)
  To: gcc-bugs

With (ulong a, ulong b) and code like
if ( a<b )  { ulong t=a; a=b; b=t; }
gcc should (if a and b are in registers already)
not emit a conditional jump but code like
MOV a, t;
CMP a, b;
CMOVcc b, a;
CMOVcc t, b;

Other such examples are easily found.  If I got it correctly, gcc
emits CMOVcc in just one situation, the conditional assignment.

Machine is AMD64, OS is SuSE Linux 9.3
gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)

-- 
           Summary: Should use cmov in some stituations
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: arndt at jjj dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2021-05-24  6:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-22568-4@http.gcc.gnu.org/bugzilla/>
2012-02-08 21:01 ` [Bug rtl-optimization/22568] Should use cmov in some stituations pinskia at gcc dot gnu.org
2021-05-24  6:13 ` pinskia at gcc dot gnu.org
     [not found] <bug-22568-11024@http.gcc.gnu.org/bugzilla/>
2006-01-15  3:14 ` pinskia at gcc dot gnu dot org
2006-01-15  4:05 ` pinskia at gcc dot gnu dot org
2006-01-15 19:11 ` rguenth at gcc dot gnu dot org
2005-07-20 14:21 [Bug c++/22568] New: " arndt at jjj dot de
2005-07-20 15:14 ` [Bug rtl-optimization/22568] " pinskia at gcc dot gnu dot org
2005-08-31  9:42 ` rguenth at gcc dot gnu dot org
2005-09-01 12:38 ` rguenth at gcc dot gnu dot org
2005-09-02  9:47 ` bonzini at gcc dot gnu dot org
2005-09-02  9:54 ` rguenth 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).