[LLVMdev] LLVM BUG for x86 code generation ?

Duncan Sands baldrick at free.fr
Thu Nov 18 03:47:35 PST 2010


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvmfails.diff
Type: text/x-patch
Size: 945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101118/a2db3d96/attachment.bin>


More information about the llvm-dev mailing list