[PATCH] D18963: PR27216: Only define __ARM_FEATURE_FMA when the target has VFPv4

Renato Golin via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 11 12:18:44 PDT 2016


rengolin added inline comments.

================
Comment at: test/Sema/arm_vfma.c:1
@@ -1,2 +1,2 @@
-// RUN: %clang_cc1 -triple thumbv7s-apple-ios7.0 -target-feature +neon -fsyntax-only -verify %s
+// RUN: %clang_cc1 -triple thumbv7s-apple-ios7.0 -target-feature +neon -target-feature +vfp4 -fsyntax-only -verify %s
 #include <arm_neon.h>
----------------
t.p.northover wrote:
> v7s is Swift, which has FMA. v7 for us is Cortex-A9, which I think also has FMA (not that it matters much these days).
v7 is Cortex-A8, and neither A8 nor A9 have FMA in VFP, only NEON.

Does Swift have FMA in VFP? or just NEON?


http://reviews.llvm.org/D18963





More information about the cfe-commits mailing list