aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Basic/Targets/AArch64.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-12-24 01:00:23 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-12-24 01:00:23 +0000
commit6252156da5066bd47f63f8bd40404d1f89909d32 (patch)
tree743d1b59945b071890dc19b6bf5e9d3ff0d1399b /lib/Basic/Targets/AArch64.cpp
parent461a67fa15370a9ec88f8f8a240bf7c123bb2029 (diff)
downloadsrc-6252156da5066bd47f63f8bd40404d1f89909d32.tar.gz
src-6252156da5066bd47f63f8bd40404d1f89909d32.zip
Vendor import of clang trunk r321414:vendor/clang/clang-trunk-r321414
Notes
Notes: svn path=/vendor/clang/dist/; revision=327124 svn path=/vendor/clang/clang-trunk-r321414/; revision=327125; tag=vendor/clang/clang-trunk-r321414
Diffstat (limited to 'lib/Basic/Targets/AArch64.cpp')
-rw-r--r--lib/Basic/Targets/AArch64.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Basic/Targets/AArch64.cpp b/lib/Basic/Targets/AArch64.cpp
index 62990dc23821..6080cefac744 100644
--- a/lib/Basic/Targets/AArch64.cpp
+++ b/lib/Basic/Targets/AArch64.cpp
@@ -181,6 +181,9 @@ void AArch64TargetInfo::getTargetDefines(const LangOptions &Opts,
if (Unaligned)
Builder.defineMacro("__ARM_FEATURE_UNALIGNED", "1");
+ if ((FPU & NeonMode) && HasFullFP16)
+ Builder.defineMacro("__ARM_FEATURE_FP16_VECTOR_ARITHMETIC", "1");
+
switch (ArchKind) {
default:
break;