When targeting COFF (windows), clang doesn't support this
directive (while binutils supports it for all targets).
Signed-off-by: Martin Storsjö <martin@martin.st>
TOOLCHAIN_FEATURES="
as_dn_directive
TOOLCHAIN_FEATURES="
as_dn_directive
as_func
as_object_arch
asm_mod_q
as_func
as_object_arch
asm_mod_q
ra .dn d0.i16
.unreq ra
EOF
ra .dn d0.i16
.unreq ra
EOF
+ check_as <<EOF && enable as_fpu_directive
+.fpu neon
+EOF
# llvm's integrated assembler supports .object_arch from llvm 3.5
[ "$objformat" = elf ] && check_as <<EOF && enable as_object_arch
# llvm's integrated assembler supports .object_arch from llvm 3.5
[ "$objformat" = elf ] && check_as <<EOF && enable as_object_arch
+#if HAVE_AS_FPU_DIRECTIVE
+# define FPU
+#else
+# define FPU @
+#endif
+
#if HAVE_NEON
.arch armv7-a
#elif HAVE_ARMV6T2
#if HAVE_NEON
.arch armv7-a
#elif HAVE_ARMV6T2
ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch
ELF .eabi_attribute 12, 0 @ suppress Tag_Advanced_SIMD_arch
#elif HAVE_VFP
ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch
ELF .eabi_attribute 12, 0 @ suppress Tag_Advanced_SIMD_arch
#elif HAVE_VFP
ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch
#endif
ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch
#endif
/* override fpu so that NEON instructions are rejected */
#if HAVE_VFP
/* override fpu so that NEON instructions are rejected */
#if HAVE_VFP
ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch
#endif
ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch
#endif