This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/6324] [arc-elf32] optimizations generate uncomplete code
- From: "francisco dot blasco at ds2 dot es" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 May 2003 09:25:51 -0000
- Subject: [Bug optimization/6324] [arc-elf32] optimizations generate uncomplete code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6324
------- Additional Comments From francisco.blasco@ds2.es 2003-05-26 09:25 -------
Subject: Re: [Bug optimization/6324] [arc-elf32] optimizations generate
uncomplete code
On Sun, 2003-05-25 at 06:20, dhazeghi@yahoo.com wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6324
>
>
It's correct, but I suppose you generate it without any optimizations.
gcc mainline generates bad code with "-O2".
Thanks in advance.
>
> ------- Additional Comments From dhazeghi@yahoo.com 2003-05-25 04:20 -------
> Hello,
>
> with gcc mainline I get the following assembly output. Is this correct? Thanks,
>
> Dara
>
> .cpu base
> .section .text
> .align 4
> .global _ll
> .type _ll, @function
> _ll:
> ; BEGIN PROLOGUE ; vars= 8, regs= 0, args= 0, extra= 16
> st fp,[sp]
> mov fp,sp
> sub sp,sp,24
> ; END PROLOGUE
> st r0,[fp,-4]
> ld r2,[fp,-4]
> sub.f 0,r2,0
> nop
> bge.nd .L2
> mov r2,1234
> st r2,[fp,-8]
> b.nd .L3
> .L2:
> mov r2,0
> st r2,[fp,-8]
> .L3:
> ld r2,[fp,-8]
> mov r0,r2
> ; EPILOGUE
> j.d blink
> ld.a fp,[sp,24]
> .size _ll, .-_ll
> .ident "GCC: (GNU) 3.4 20030524 (experimental)"
>
>
>
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
--
======================================================
Francisco J. Blasco francisco.blasco@ds2.es
Design Engineer
Software Dept.
Design of Systems on Silicon, S.L.
Av. Charles Robert Darwin, 2 Phone. +34-96-136 60 04
46980 Paterna (VALENCIA) FAX +34-96-136 62 50
SPAIN http://www.ds2.es
======================================================
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.