public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/60737] New: rs6000 expand_block_clear uses word stores on double word pointer
@ 2014-04-02  4:35 anton at samba dot org
  2014-04-02  4:41 ` [Bug middle-end/60737] " anton at samba dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: anton at samba dot org @ 2014-04-02  4:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60737
           Summary: rs6000 expand_block_clear uses word stores on double
                    word pointer
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anton at samba dot org

The following code:

#include <string.h>

void foo(long *p)
{   
    memset(p, 0, 16);
}

When built with a 64bit target:

gcc -mcpu=power8 -O2 -S foo.c

Ends up using 32 byte stores:

foo:
    li 9,0
    stw 9,0(3)
    stw 9,4(3)
    stw 9,8(3)
    stw 9,12(3)
    blr

expand_block_move has a similar issue


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

end of thread, other threads:[~2014-05-08  2:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-02  4:35 [Bug middle-end/60737] New: rs6000 expand_block_clear uses word stores on double word pointer anton at samba dot org
2014-04-02  4:41 ` [Bug middle-end/60737] " anton at samba dot org
2014-04-02  8:39 ` rguenth at gcc dot gnu.org
2014-05-01 12:50 ` [Bug target/60737] " amodra at gmail dot com
2014-05-08  2:07 ` amodra at gcc dot gnu.org
2014-05-08  2:14 ` amodra at gmail 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).