llvm.org GIT mirror llvm / 16fbfb4
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. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@205767 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 6 years ago
1 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
4949 // documentation are wrong; these are correct (i.e. "what gcc does").
5050 if (ST.isPPC64() || ST.isSVR4ABI())
5151 Ret += "-f64:64:64-i64:64:64";
52 else
53 Ret += "-f64:32:64";
5254
5355 // Set support for 128 floats depending on the ABI.
54 if (ST.isPPC64() && ST.isSVR4ABI()) {
55 if (T.getOS() != llvm::Triple::FreeBSD)
56 Ret += "-f128:128:128";
57 } else {
56 if (!ST.isPPC64() && ST.isSVR4ABI())
5857 Ret += "-f128:64:128";
59 }
6058
6159 // Some ABIs support 128 bit vectors.
6260 if (ST.isPPC64() && ST.isSVR4ABI())