[LLVMdev] Dejagnu Tests

Chris Lattner sabre at nondot.org
Tue Jul 1 13:22:22 PDT 2008


On Tue, 1 Jul 2008, Edd Barrett wrote:
> Chris Lattner wrote:
>> Specifically which test is this?  It is possible we can just change the
>> test to not depend on this.
>
> Assembler/2004-02-01-NegativeZero.ll
>
> ; RUN: llvm-as < %s | llvm-dis | grep -- -0.0
>
> global double 0x8000000000000000
> global float -0.0
>
> The .bc made by both Linux and OpenBSD is identical according to an md5
> hash.

If the output of llvm-dis is "0.0" instead of "-0.0", then that is a 
serious problem, and we need to fix the asmprinter to work around the 
different in system libraries.

The printing is happening in lib/VMCore/AsmWriter.cpp around line 483.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list