summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/PowerPC/PPCTargetMachine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp
index 9e3f14ccaf..705dd783fc 100644
--- a/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -49,9 +49,11 @@ static std::string getDataLayoutString(const PPCSubtarget &ST) {
// documentation are wrong; these are correct (i.e. "what gcc does").
if (ST.isPPC64() || ST.isSVR4ABI())
Ret += "-i64:64";
+ else
+ Ret += "-f64:32:64";
// Set support for 128 floats depending on the ABI.
- if (!ST.isPPC64() || !ST.isSVR4ABI())
+ if (!ST.isPPC64() && ST.isSVR4ABI())
Ret += "-f128:64:128";
// PPC64 has 32 and 64 bit registers, PPC32 has only 32 bit ones.