[LLVMbugs] [Bug 15605] bad asm emitted for powerpc-darwin8

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 27 06:21:16 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15605

Hal Finkel <hfinkel at anl.gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Hal Finkel <hfinkel at anl.gov> ---
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > I tried your suggestion:
> > > 
> > > diff --git a/lib/Target/PowerPC/PPCRegisterInfo.td
> > > b/lib/Target/PowerPC/PPCRegisterInfo.td
> > > index 55d36bb..101f5fe 100644
> > > --- a/lib/Target/PowerPC/PPCRegisterInfo.td
> > > +++ b/lib/Target/PowerPC/PPCRegisterInfo.td
> > > @@ -87,7 +87,7 @@ foreach Index = 0-31 in {
> > >  }
> > >  
> > >  // The reprsentation of r0 when treated as the constant 0.
> > > -def ZERO  : GPR<0, "r0">;
> > > +def ZERO  : GPR<0, "0">;
> > >  def ZERO8 : GP8<ZERO, "r0">;
> > >  
> > >  // Representations of the frame pointer used by ISD::FRAMEADDR.
> > > 
> > > 
> > > and it seems to have worked, the previous test case now compiles.  
> > > Will that change possibly hurt any other PPC platform?
> > 
> > No, I think that all platforms should be fine with this.
> 
> We can make the change for ZERO and ZERO8. I'll try to do this today for you.

Should be fixed in r178142.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130327/8439e097/attachment.html>


More information about the llvm-bugs mailing list