summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-12-21 20:49:43 +0000
committerTim Northover <tnorthover@apple.com>2016-12-21 20:49:43 +0000
commitc67803fb14b32de9b6a6b65359a0d689a45a89ae (patch)
treefbf32681dbf0eb54e62c0b32ed4b390154d57706 /clang/lib
parent081abbb164cceea0ff5b70d1557f2cf31198f5b9 (diff)
downloadbcm5719-llvm-c67803fb14b32de9b6a6b65359a0d689a45a89ae.tar.gz
bcm5719-llvm-c67803fb14b32de9b6a6b65359a0d689a45a89ae.zip
ARM: define a macro for the FPv5 FPU in ARM mode.
FPv5 is in Cortex-M7 and the 64-bit CPUs when running in 32-bit mode. The name is from the Cortex-M7 TRM. llvm-svn: 290268
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Basic/Targets.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index f887b0556d5..dd88646b17f 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -5391,6 +5391,8 @@ public:
Builder.defineMacro("__ARM_VFPV3__");
if (FPU & VFP4FPU)
Builder.defineMacro("__ARM_VFPV4__");
+ if (FPU & FPARMV8)
+ Builder.defineMacro("__ARM_FPV5__");
}
// This only gets set when Neon instructions are actually available, unlike
OpenPOWER on IntegriCloud