public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "acahalan at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/23684] Combine stores for non strict alignment targets
Date: Wed, 29 Nov 2006 05:11:00 -0000	[thread overview]
Message-ID: <20061129051102.21449.qmail@sourceware.org> (raw)
In-Reply-To: <bug-23684-6528@http.gcc.gnu.org/bugzilla/>



------- Comment #6 from acahalan at gmail dot com  2006-11-29 05:11 -------
This hits it too. (example is PowerPC)

///////////////////
#include <string.h>

char *foo(char *buf)
{
 short temp;
 int temp1;

 *buf++=42;

 temp = 0xfeed;
 memcpy(buf, &temp, sizeof(temp));
 buf+=sizeof(temp);

 temp1 = 0x12345678;
 memcpy(buf, &temp1, sizeof(temp1));
 buf+=sizeof(temp1);

 temp1 = 0x12345678;
 memcpy(buf, &temp1, sizeof(temp1));
 buf+=sizeof(temp1);

 *buf++=42;

 return buf;
}
///////////////
foo:
        stwu 1,-32(1)
        lis 9,0x1234
        li 11,42
        li 0,-275
        ori 9,9,22136
        stb 11,11(3)
        stb 11,0(3)
        sth 0,1(3)
        stw 9,7(3)
        stw 9,3(3)
        addi 3,3,12
        addi 1,1,32
        blr


-- 


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


  parent reply	other threads:[~2006-11-29  5:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-23684-6528@http.gcc.gnu.org/bugzilla/>
2006-09-21  4:39 ` pinskia at gcc dot gnu dot org
2006-09-21  5:12 ` acahalan at gmail dot com
2006-11-29  5:05 ` pinskia at gcc dot gnu dot org
2006-11-29  5:11 ` acahalan at gmail dot com [this message]
2007-04-03 16:53 ` pinskia at gcc dot gnu dot org
2007-04-03 16:54 ` pinskia at gcc dot gnu dot org
     [not found] <bug-23684-4@http.gcc.gnu.org/bugzilla/>
2012-07-18  9:36 ` rguenth at gcc dot gnu.org
2013-05-17  8:48 ` rguenth at gcc dot gnu.org
2013-05-17  9:52 ` jakub at gcc dot gnu.org
2013-05-18 14:04 ` msharov at users dot sourceforge.net
2013-11-10  6:30 ` pinskia at gcc dot gnu.org
2005-09-01 18:05 [Bug rtl-optimization/23684] New: " pinskia at gcc dot gnu dot org
2005-09-01 18:07 ` [Bug rtl-optimization/23684] " pinskia at gcc dot gnu dot org
2005-09-07  1:42 ` amodra at bigpond dot net dot au
2005-09-15 20:15 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061129051102.21449.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).