public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/56513] New: Wrong code generation with -O3 on ARM
@ 2013-03-03 18:45 tim.kosse@filezilla-project.org
  2013-03-03 18:47 ` [Bug target/56513] " tim.kosse@filezilla-project.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tim.kosse@filezilla-project.org @ 2013-03-03 18:45 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56513
           Summary: Wrong code generation with -O3 on ARM
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tim.kosse@filezilla-project.org


Created attachment 29571
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29571
Small test program exhibiting the problem

If I'm cross-compiling the attached sample-program using gcc 4.7.2 for ARM on
an x86-64 system, the resulting binary behaves wrongly if -O3 is used.

Output with -O0:

value: -23
best:  -10000
a:     -68
value: -22
best:  -23
a:     -23

Output with -O3:

value: -23
best:  -10000
a:     -68
value: -22
best:  -23
a:     65513
BUG


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

end of thread, other threads:[~2013-03-04 13:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-03 18:45 [Bug target/56513] New: Wrong code generation with -O3 on ARM tim.kosse@filezilla-project.org
2013-03-03 18:47 ` [Bug target/56513] " tim.kosse@filezilla-project.org
2013-03-03 18:49 ` tim.kosse@filezilla-project.org
2013-03-03 18:55 ` tim.kosse@filezilla-project.org
2013-03-03 20:11 ` mikpe at it dot uu.se
2013-03-03 23:27 ` mikpe at it dot uu.se
2013-03-04 13:24 ` mikpe at it dot uu.se

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).