forked from OSchip/llvm-project
long double is double on OpenBSD/NetBSD/PPC.
Patch by George Koehler. llvm-svn: 353656
This commit is contained in:
parent
f6e6c369c0
commit
09699a7603
|
@ -330,9 +330,15 @@ public:
|
|||
break;
|
||||
}
|
||||
|
||||
if (getTriple().isOSFreeBSD()) {
|
||||
switch (getTriple().getOS()) {
|
||||
case llvm::Triple::FreeBSD:
|
||||
case llvm::Triple::NetBSD:
|
||||
case llvm::Triple::OpenBSD:
|
||||
LongDoubleWidth = LongDoubleAlign = 64;
|
||||
LongDoubleFormat = &llvm::APFloat::IEEEdouble();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// PPC32 supports atomics up to 4 bytes.
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// RUN: %clang_cc1 -triple powerpc-unknown-freebsd -emit-llvm -o - %s| FileCheck -check-prefix=SVR4-CHECK %s
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-netbsd -emit-llvm -o - %s| FileCheck -check-prefix=SVR4-CHECK %s
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-openbsd -emit-llvm -o - %s| FileCheck -check-prefix=SVR4-CHECK %s
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue