OSDN Git Service

arm: Fix vfp dead code elimination with have_vfp_vm
authorMartin Storsjö <martin@martin.st>
Thu, 7 Jan 2016 13:06:49 +0000 (15:06 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 8 Jan 2016 21:52:59 +0000 (23:52 +0200)
This fixes builds with --disable-vfp.

Checking for the armv6 cpu flag is incorrect, since vfpv2 isn't
armv6 specific.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/arm/cpu.h

index 5563fc1..127993e 100644 (file)
@@ -33,7 +33,7 @@
 /* some functions use the VFPv2 vector mode which is deprecated in ARMv7-A
  * and might trap on such CPU depending on the OS configuration */
 #define have_vfp_vm(flags)                                              \
-    (have_armv6(flags) && ((flags) & AV_CPU_FLAG_VFP_VM))
+    (HAVE_VFP && ((flags) & AV_CPU_FLAG_VFP_VM))
 
 /* Some functions use the 'setend' instruction which is deprecated on ARMv8
  * and serializing on some ARMv7 cores. This macro ensures such functions