[llvm-commits] Fix floating point numbers in tests on MinGW
Danil Malyshev
dmalyshev at accesssoftek.com
Wed Dec 8 11:42:38 PST 2010
Hello All,
Some LLVM tests expect exact matching on printed out floating point numbers, and they fail (at least on Windows) because of that.
For example, the test CodeGen/ARM/fpconsts.ll expects "-1.300000e+01" but the actual output could be "-1.300000e+001" (extra 0 in magnitude).
Please find attached the patch to fix such tests by ignoring insignificant zeroes.
The following tests are affected:
* CodeGen/ARM/fpconsts.ll
* Transforms/GVN/rle.ll
* Transforms/InstCombine/bitcast.ll
* Transforms/InstCombine/fsub.ll
* Transforms/InstCombine/phi.ll
* Transforms/InstCombine/shufflevec-constant.ll
Thank you,
Danil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101208/acc6f65b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-scientific-01.diff
Type: application/octet-stream
Size: 3876 bytes
Desc: fix-scientific-01.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101208/acc6f65b/attachment.obj>
More information about the llvm-commits
mailing list