[LLVMdev] Bug in optimization pass related to strcmp and bigendian back-ends
Stripf, Timo
Timo.Stripf at itiv.uni-karlsruhe.de
Tue Aug 11 02:24:36 PDT 2009
I thought the LLVM IR is target independent and that "llvm-gcc -c -emit-llvm -O2" produces target independent code.
I'm working on a back-end and use llvm-gcc to first generate the bc file. Afterwards I use llc including the new back-end to produce the assembler file.
-Timo
-----Ursprüngliche Nachricht-----
Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] Im Auftrag von Eli Friedman
Gesendet: Dienstag, 11. August 2009 10:27
An: LLVM Developers Mailing List
Betreff: Re: [LLVMdev] Bug in optimization pass related to strcmp and bigendian back-ends
On Tue, Aug 11, 2009 at 1:13 AM, Stripf,
Timo<Timo.Stripf at itiv.uni-karlsruhe.de> wrote:
> On little endian machines the code works correct but on big endian %lhsv
> must be compared against 73 << 8.
If llvm-gcc thinks it's compiling for a little-endian target, the
optimizers will assume the target is little-endian... what are you
trying to do?
-Eli
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list