forked from OSchip/llvm-project
[FPEnv] [Clang] Enable constrained FP support for PowerPC
d4ce862f
introduced HasStrictFP to disable generating constrained FP
operations for platforms lacking support. Since work for enabling
constrained FP on PowerPC is almost done, we'd like to enable it.
Reviewed By: kpn, steven.zhang
Differential Revision: https://reviews.llvm.org/D87223
This commit is contained in:
parent
bd2f7ad603
commit
8ecc8520bc
|
@ -82,6 +82,7 @@ public:
|
||||||
SimdDefaultAlign = 128;
|
SimdDefaultAlign = 128;
|
||||||
LongDoubleWidth = LongDoubleAlign = 128;
|
LongDoubleWidth = LongDoubleAlign = 128;
|
||||||
LongDoubleFormat = &llvm::APFloat::PPCDoubleDouble();
|
LongDoubleFormat = &llvm::APFloat::PPCDoubleDouble();
|
||||||
|
HasStrictFP = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the language option for altivec based on our value.
|
// Set the language option for altivec based on our value.
|
||||||
|
|
|
@ -2,14 +2,12 @@
|
||||||
// RUN: %clang_cc1 -triple powerpc64le-gnu-linux -target-feature +vsx \
|
// RUN: %clang_cc1 -triple powerpc64le-gnu-linux -target-feature +vsx \
|
||||||
// RUN: -emit-llvm %s -o - | FileCheck --check-prefix=CHECK-UNCONSTRAINED %s
|
// RUN: -emit-llvm %s -o - | FileCheck --check-prefix=CHECK-UNCONSTRAINED %s
|
||||||
// RUN: %clang_cc1 -triple powerpc64le-gnu-linux -target-feature +vsx \
|
// RUN: %clang_cc1 -triple powerpc64le-gnu-linux -target-feature +vsx \
|
||||||
// RUN: -fexperimental-strict-floating-point \
|
|
||||||
// RUN: -ffp-exception-behavior=strict -emit-llvm %s -o - | FileCheck \
|
// RUN: -ffp-exception-behavior=strict -emit-llvm %s -o - | FileCheck \
|
||||||
// RUN: --check-prefix=CHECK-CONSTRAINED -vv %s
|
// RUN: --check-prefix=CHECK-CONSTRAINED -vv %s
|
||||||
// RUN: %clang_cc1 -triple powerpc64le-gnu-linux -target-feature +vsx \
|
// RUN: %clang_cc1 -triple powerpc64le-gnu-linux -target-feature +vsx \
|
||||||
// RUN: -fallow-half-arguments-and-returns -S -o - %s | \
|
// RUN: -fallow-half-arguments-and-returns -S -o - %s | \
|
||||||
// RUN: FileCheck --check-prefix=CHECK-ASM --check-prefix=NOT-FIXME-CHECK %s
|
// RUN: FileCheck --check-prefix=CHECK-ASM --check-prefix=NOT-FIXME-CHECK %s
|
||||||
// RUN: %clang_cc1 -triple powerpc64le-gnu-linux -target-feature +vsx \
|
// RUN: %clang_cc1 -triple powerpc64le-gnu-linux -target-feature +vsx \
|
||||||
// RUN: -fexperimental-strict-floating-point \
|
|
||||||
// RUN: -fallow-half-arguments-and-returns -S -ffp-exception-behavior=strict \
|
// RUN: -fallow-half-arguments-and-returns -S -ffp-exception-behavior=strict \
|
||||||
// RUN: -o - %s | FileCheck --check-prefix=CHECK-ASM \
|
// RUN: -o - %s | FileCheck --check-prefix=CHECK-ASM \
|
||||||
// RUN: --check-prefix=FIXME-CHECK %s
|
// RUN: --check-prefix=FIXME-CHECK %s
|
||||||
|
|
Loading…
Reference in New Issue