diff options
author | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-04-10 22:44:51 +0000 |
---|---|---|
committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-04-10 22:44:51 +0000 |
commit | 83f17f25fc560db4f756010a1bbe1f8eb1d74b12 (patch) | |
tree | 5ea2628f003f8f27a146d172af796a906d638005 /bindings/ocaml | |
parent | 701de8fafc8db86a0a7df61b177720b1f681c60c (diff) | |
download | external_llvm-83f17f25fc560db4f756010a1bbe1f8eb1d74b12.zip external_llvm-83f17f25fc560db4f756010a1bbe1f8eb1d74b12.tar.gz external_llvm-83f17f25fc560db4f756010a1bbe1f8eb1d74b12.tar.bz2 |
llvm-stress: stop abusing ConstantFP::get()
ConstantFP::get(Type*, double) is unreliably host-specific:
it can't handle a type like PPC128 on an x86 host. It even
has a comment to that effect: "This should only be used for
simple constant values like 2.0/1.0 etc, that are
known-valid both as host double and as the target format."
Instead, use APFloat. While we're at it, randomize the floating
point value more thoroughly; it was previously limited
to the range 0 to 2**19 - 1.
PR12451.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml')
0 files changed, 0 insertions, 0 deletions