Hi Duncan, I've patched LLVM 2.8 source tree, and it doesn't fix the problem on my side. Did you checked that your patch fixes the problem ? Best Regards Seb -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Duncan Sands Sent: Thursday, November 18, 2010 12:48 PM To: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] LLVM BUG for x86 code generation ? Hi Sebastian,> when I compiled attached .ll file with llc 2.8 as follows: > > llc -O0 -march=x86 llvmfails.ll -o llvmfails.s gcc -m32 llvmfails.s -o > llvmfails ./llvmfails > > the executable exits with the expected message: "SUCCESS", whereas if I use -O1 instead of -O0 for LLC, it prints out FAILS. > > llc -O0 -march=x86 llvmfails.ll -o llvmfails.s gcc -m32 llvmfails.s -o > llvmfails ./llvmfailsdoes the attached patch fix your problems? Ciao, Duncan. PS: In the future please open a bug report when reporting a bug.
Hi Sebastien,> I've patched LLVM 2.8 source tree, and it doesn't fix the problem on my side.Are you sure you tested using the newly built llc?> Did you checked that your patch fixes the problem ?I did: Before: $ llc -O1 -march=x86 llvmfails.ll -o llvmfails.s $ gcc -m32 llvmfails.s -o llvmfails && ./llvmfails FAILS After: $ ~/LLVM/llvm-objects/Debug+Asserts/bin/llc -O1 -march=x86 llvmfails.ll -o llvmfails.s $ gcc -m32 llvmfails.s -o llvmfails && ./llvmfails SUCCESS Ciao, Duncan.> > Best Regards > Seb > > -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Duncan Sands > Sent: Thursday, November 18, 2010 12:48 PM > To: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] LLVM BUG for x86 code generation ? > > Hi Sebastian, > >> when I compiled attached .ll file with llc 2.8 as follows: >> >> llc -O0 -march=x86 llvmfails.ll -o llvmfails.s gcc -m32 llvmfails.s -o >> llvmfails ./llvmfails >> >> the executable exits with the expected message: "SUCCESS", whereas if I use -O1 instead of -O0 for LLC, it prints out FAILS. >> >> llc -O0 -march=x86 llvmfails.ll -o llvmfails.s gcc -m32 llvmfails.s -o >> llvmfails ./llvmfails > > does the attached patch fix your problems? > > Ciao, > > Duncan. > > PS: In the future please open a bug report when reporting a bug.
Hi Duncan, I think, I found my problem, I've patch 2.8 source tree, I guess I need to patch dev source tree right ? Anyway, thanks for the time you spend on this problem. Best Regards Seb -----Original Message----- From: Duncan Sands [mailto:baldrick at free.fr] Sent: Thursday, November 18, 2010 2:18 PM To: Sebastien DELDON-GNB Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] LLVM BUG for x86 code generation ? Hi Sebastien,> I've patched LLVM 2.8 source tree, and it doesn't fix the problem on my side.Are you sure you tested using the newly built llc?> Did you checked that your patch fixes the problem ?I did: Before: $ llc -O1 -march=x86 llvmfails.ll -o llvmfails.s $ gcc -m32 llvmfails.s -o llvmfails && ./llvmfails FAILS After: $ ~/LLVM/llvm-objects/Debug+Asserts/bin/llc -O1 -march=x86 llvmfails.ll -o llvmfails.s $ gcc -m32 llvmfails.s -o llvmfails && ./llvmfails SUCCESS Ciao, Duncan.> > Best Regards > Seb > > -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Duncan Sands > Sent: Thursday, November 18, 2010 12:48 PM > To: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] LLVM BUG for x86 code generation ? > > Hi Sebastian, > >> when I compiled attached .ll file with llc 2.8 as follows: >> >> llc -O0 -march=x86 llvmfails.ll -o llvmfails.s gcc -m32 llvmfails.s -o >> llvmfails ./llvmfails >> >> the executable exits with the expected message: "SUCCESS", whereas if I use -O1 instead of -O0 for LLC, it prints out FAILS. >> >> llc -O0 -march=x86 llvmfails.ll -o llvmfails.s gcc -m32 llvmfails.s -o >> llvmfails ./llvmfails > > does the attached patch fix your problems? > > Ciao, > > Duncan. > > PS: In the future please open a bug report when reporting a bug.