diff options
author | John Brawn <john.brawn@arm.com> | 2015-06-05 13:34:11 +0000 |
---|---|---|
committer | John Brawn <john.brawn@arm.com> | 2015-06-05 13:34:11 +0000 |
commit | 5a589ad6035e2cc6776cc8fb255c27b38cab6c5c (patch) | |
tree | 939a938bf4a472f63890ecee46a1ad049809d8e0 /clang/test/Preprocessor/arm-target-features.c | |
parent | 985c04e8fafb2489b1fa960ebba5383e9d77e91e (diff) | |
download | bcm5719-llvm-5a589ad6035e2cc6776cc8fb255c27b38cab6c5c.tar.gz bcm5719-llvm-5a589ad6035e2cc6776cc8fb255c27b38cab6c5c.zip |
[ARM] Use TargetParser to determine FPU subtarget features
The main effect of this is to fix anomalies where certain -mfpu options didn't
disable everything that they should causing strange behaviour when combined
with -mcpu or -march values that themselves enabled fpu subtarget features,
e.g. -mfpu=fpv5-dp-d16 with -march=armv7em previously behaved the same as
-mfpu=fpv5-sp-d16 due to fp-only-sp not being disabled.
Invalid -mfpu options now also give an error, which is consistent with the
handling of the .fpu directive.
Differential Revision: http://reviews.llvm.org/D10239
llvm-svn: 239152
Diffstat (limited to 'clang/test/Preprocessor/arm-target-features.c')
-rw-r--r-- | clang/test/Preprocessor/arm-target-features.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Preprocessor/arm-target-features.c b/clang/test/Preprocessor/arm-target-features.c index 2b0ebb9b1e8..389877125d1 100644 --- a/clang/test/Preprocessor/arm-target-features.c +++ b/clang/test/Preprocessor/arm-target-features.c @@ -138,8 +138,8 @@ // FPUNONE-A5-NOT:#define __ARM_NEON__ 1 // FPUNONE-A5-NOT:#define __ARM_VFPV4__ 1 -// RUN: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a5 -mfpu=vfp3-d16 -x c -E -dM %s -o - | FileCheck --check-prefix=NONEON-A5 %s -// RUN: %clang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a5 -mfpu=vfp3-d16 -x c -E -dM %s -o - | FileCheck --check-prefix=NONEON-A5 %s +// RUN: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a5 -mfpu=vfp4-d16 -x c -E -dM %s -o - | FileCheck --check-prefix=NONEON-A5 %s +// RUN: %clang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a5 -mfpu=vfp4-d16 -x c -E -dM %s -o - | FileCheck --check-prefix=NONEON-A5 %s // NONEON-A5-NOT:#define __ARM_NEON__ 1 // NONEON-A5:#define __ARM_VFPV4__ 1 |