[llvm-branch-commits] [llvm-branch] r205767 - Merging r197574:

Tom Stellard thomas.stellard at amd.com
Tue Apr 8 07:27:58 PDT 2014


Author: tstellar
Date: Tue Apr  8 09:27:58 2014
New Revision: 205767

URL: http://llvm.org/viewvc/llvm-project?rev=205767&view=rev
Log:
Merging r197574:

------------------------------------------------------------------------
r197574 | rafael.espindola | 2013-12-18 10:06:25 -0500 (Wed, 18 Dec 2013) | 8 lines

Fix f64 and f128 for ppc-darwin.

This patch adds -f64:32:64 to 32 bit ppc darwin since a f64 inside a
structure are only 32 bit aligned.

The patch also drop -f128:64:128 from all ppc darwin, since f128 is
128 bit aligned.

------------------------------------------------------------------------

Modified:
    llvm/branches/release_34/lib/Target/PowerPC/PPCTargetMachine.cpp

Modified: llvm/branches/release_34/lib/Target/PowerPC/PPCTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_34/lib/Target/PowerPC/PPCTargetMachine.cpp?rev=205767&r1=205766&r2=205767&view=diff
==============================================================================
--- llvm/branches/release_34/lib/Target/PowerPC/PPCTargetMachine.cpp (original)
+++ llvm/branches/release_34/lib/Target/PowerPC/PPCTargetMachine.cpp Tue Apr  8 09:27:58 2014
@@ -50,14 +50,12 @@ static std::string getDataLayoutString(c
   // documentation are wrong; these are correct (i.e. "what gcc does").
   if (ST.isPPC64() || ST.isSVR4ABI())
     Ret += "-f64:64:64-i64:64:64";
+  else
+    Ret += "-f64:32:64";
 
   // Set support for 128 floats depending on the ABI.
-  if (ST.isPPC64() && ST.isSVR4ABI()) {
-    if (T.getOS() != llvm::Triple::FreeBSD)
-      Ret += "-f128:128:128";
-  } else {
+  if (!ST.isPPC64() && ST.isSVR4ABI())
     Ret += "-f128:64:128";
-  }
 
   // Some ABIs support 128 bit vectors.
   if (ST.isPPC64() && ST.isSVR4ABI())





More information about the llvm-branch-commits mailing list