]> granicus.if.org Git - clang/commit
PR27216: Only define __ARM_FEATURE_FMA when the target has VFPv4
authorSilviu Baranga <silviu.baranga@arm.com>
Thu, 28 Apr 2016 11:29:08 +0000 (11:29 +0000)
committerSilviu Baranga <silviu.baranga@arm.com>
Thu, 28 Apr 2016 11:29:08 +0000 (11:29 +0000)
commit391c662c61196569ec91a02404683927977aa448
tree0ce30f2cc7c5ef2020374a8b958f6816047d2750
parent176cad7996361a68ccaa8430697119a6bcdc8d64
PR27216: Only define __ARM_FEATURE_FMA when the target has VFPv4

Summary:
According to the ACLE spec, "__ARM_FEATURE_FMA is defined to 1 if
the hardware floating-point architecture supports fused floating-point
multiply-accumulate".

This changes clang's behaviour from emitting this macro for v7-A and v7-R
cores to only emitting it when the target has VFPv4 (and therefore support
for the floating point multiply-accumulate instruction).

Fixes PR27216

Reviewers: t.p.northover, rengolin

Subscribers: aemerson, rengolin, cfe-commits

Differential Revision: http://reviews.llvm.org/D18963

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267869 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/CodeGen/arm-neon-fma.c
test/Preprocessor/arm-acle-6.5.c
test/Sema/arm_vfma.c