public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/44073]  New: x86 constants could be unduplicated
@ 2010-05-11  8:14 astrange at ithinksw dot com
  2010-05-11  8:43 ` [Bug target/44073] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: astrange at ithinksw dot com @ 2010-05-11  8:14 UTC (permalink / raw)
  To: gcc-bugs

void f1(int *a, int *b, int *c)
{
    int d = 0xE0E0E0E0;

    *a = *b = *c = d;
}

produces
_f1:
LFB0:
        movl    $-522133280, (%rdx)
        movl    $-522133280, (%rsi)
        movl    $-522133280, (%rdi)
        ret

on x86-64 at -Os. It would save instruction space and probably not be any
slower to actually assign d to a register, but this is only done for 64-bit
constants.


-- 
           Summary: x86 constants could be unduplicated
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: astrange at ithinksw dot com
  GCC host triplet: x86_64-*-*


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


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

end of thread, other threads:[~2010-08-08  6:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-11  8:14 [Bug target/44073] New: x86 constants could be unduplicated astrange at ithinksw dot com
2010-05-11  8:43 ` [Bug target/44073] " rguenth at gcc dot gnu dot org
2010-05-11 10:24 ` steven at gcc dot gnu dot org
2010-05-11 10:36 ` astrange at ithinksw dot com
2010-07-24 21:37 ` pinskia at gcc dot gnu dot org
2010-08-08  6:39 ` astrange at ithinksw 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).