[llvm-commits] [llvm] r47045 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td

2008-02-12 Thread Nate Begeman
Author: sampo Date: Tue Feb 12 20:58:33 2008 New Revision: 47045 URL: http://llvm.org/viewvc/llvm-project?rev=47045&view=rev Log: Make register scavenging happy by not using a reg (CR0) that isn't defined Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td Modified: llvm/trunk/lib/Target

Re: [llvm-commits] [llvm] r47045 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td

2008-02-13 Thread Nicolas Geoffray
Hi Nate, Nate Begeman wrote: > Author: sampo > Date: Tue Feb 12 20:58:33 2008 > New Revision: 47045 > > URL: http://llvm.org/viewvc/llvm-project?rev=47045&view=rev > Log: > Make register scavenging happy by not using a reg (CR0) that isn't defined > > I don't know about darwin, but this breaks

Re: [llvm-commits] [llvm] r47045 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td

2008-02-13 Thread Chris Lattner
> I don't know about darwin, but this breaks linux/ppc32 JIT (llc works > fine). On a simple test case: > > define i32 @main(i32 %argc) { > entry: >%tmp2 = add i32 2, %argc >ret i32 %tmp2 > } Yep, this was broken on darwin as well. I just committed a fix which makes it work for

Re: [llvm-commits] [llvm] r47045 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td

2008-02-13 Thread Nicolas Geoffray
Thanks Chris, it works just fine now. Chris Lattner wrote: >> I don't know about darwin, but this breaks linux/ppc32 JIT (llc works >> fine). On a simple test case: >> >> define i32 @main(i32 %argc) { >> entry: >>%tmp2 = add i32 2, %argc >>ret i32 %tmp2 >> } >> > > Yep, this w