projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a29cb0
)
Fix missed out llvm-stress after APFloat change.
author
Tim Northover
<Tim.Northover@arm.com>
Tue, 22 Jan 2013 10:18:26 +0000
(10:18 +0000)
committer
Tim Northover
<Tim.Northover@arm.com>
Tue, 22 Jan 2013 10:18:26 +0000
(10:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173141
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-stress/llvm-stress.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-stress/llvm-stress.cpp
b/tools/llvm-stress/llvm-stress.cpp
index bb15c6b8e80f42cf48344b38f142b5a088cf0083..3848daaed5b32e81a2856468cbe2cf9a483b10f2 100644
(file)
--- a/
tools/llvm-stress/llvm-stress.cpp
+++ b/
tools/llvm-stress/llvm-stress.cpp
@@
-379,9
+379,7
@@
struct ConstModifier: public Modifier {
RandomBits[i] = Ran->Rand64();
APInt RandomInt(Ty->getPrimitiveSizeInBits(), makeArrayRef(RandomBits));
-
- bool isIEEE = !Ty->isX86_FP80Ty() && !Ty->isPPC_FP128Ty();
- APFloat RandomFloat(RandomInt, isIEEE);
+ APFloat RandomFloat(Ty->getFltSemantics(), RandomInt);
if (Ran->Rand() & 1)
return PT->push_back(ConstantFP::getNullValue(Ty));