[LLVMdev] LLVM BUG for x86 code generation ?
Duncan Sands
baldrick at free.fr
Thu Nov 18 05:17:36 PST 2010
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.
More information about the llvm-dev
mailing list