public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/28232]  New: wrong movua.l  instruction combine  for sh4a
@ 2006-07-03 11:59 tyokota at k2 dot dion dot ne dot jp
  2006-07-03 22:49 ` [Bug target/28232] Wrong aligned load is generated with -m4a on sh-* kkojima at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tyokota at k2 dot dion dot ne dot jp @ 2006-07-03 11:59 UTC (permalink / raw)
  To: gcc-bugs

union unaligned {
        void *ptr;
} __attribute__((__packed__));

void *foo(union unaligned *p) {
  return (p->ptr);
}

--------------------
sh-elf-gcc -V4.1.1 -S -O2 -m4a test2.c

combine optimize change movua.l to mov.l instruction.

        .file   "test2.c"
        .text
        .text
        .align 1
        .align 5
        .global _foo
        .type   _foo, @function
_foo:
        mov.l   @r4,r0
        mov.l   r14,@-r15
        mov     r15,r14
        mov     r14,r15
        mov.l   @r15+,r14
        rts
        nop
        .size   _foo, .-_foo
        .ident  "GCC: (GNU) 4.1.1"


-- 
           Summary: wrong movua.l  instruction combine  for sh4a
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tyokota at k2 dot dion dot ne dot jp
GCC target triplet: sh-elf


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


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

end of thread, other threads:[~2006-10-23  0:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-03 11:59 [Bug target/28232] New: wrong movua.l instruction combine for sh4a tyokota at k2 dot dion dot ne dot jp
2006-07-03 22:49 ` [Bug target/28232] Wrong aligned load is generated with -m4a on sh-* kkojima at gcc dot gnu dot org
2006-07-06 22:35 ` patchapp at dberlin dot org
2006-07-10 23:02 ` kkojima at gcc dot gnu dot org
2006-10-23  0:14 ` kkojima at gcc dot gnu dot org
2006-10-23  0:28 ` kkojima 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).