public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/48990] New: MIPS wrong code error with -O1
@ 2011-05-13 16:15 pkoning at gcc dot gnu.org
  2011-05-13 16:54 ` [Bug target/48990] " pkoning at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pkoning at gcc dot gnu.org @ 2011-05-13 16:15 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: MIPS wrong code error with -O1
           Product: gcc
           Version: 4.5.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pkoning@gcc.gnu.org


Created attachment 24241
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24241
preprocessed file (trimmed a bit) that reproduces the bug

The attached file compiles wrong code with -march=xlr -msoft-float -mabi=n32
-O1.  It compiles correctly with -O2.

The error shows up in basic block 3: the branch (beql $2,$0,$L10) has a li
$4,32 in its delay slot.  That clobbers $4 (A0) in the no-branch case, and A0
is still needed a few lines below.

The bug is also present in GCC 4.5.1

In looking at the debug dumps, I see the problem introduced in the "mach" pass
-- that pass builds a sequence insn for the branch and the load.

I'll try 4.6.0 next.


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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-13 16:15 [Bug target/48990] New: MIPS wrong code error with -O1 pkoning at gcc dot gnu.org
2011-05-13 16:54 ` [Bug target/48990] " pkoning at gcc dot gnu.org
2011-05-13 18:21 ` pinskia at gcc dot gnu.org
2011-05-13 18:24 ` pkoning at gcc dot gnu.org
2011-05-13 18:28 ` pkoning at gcc dot gnu.org
2011-05-13 19:30 ` pkoning at gcc dot gnu.org
2011-05-13 21:09 ` pkoning at gcc dot gnu.org
2011-05-14  2:09 ` pkoning at gcc dot gnu.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).