Skip to content
Snippets Groups Projects
Commit 73c8c034 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

arm: Fix vfp dead code elimination with have_vfp_vm


This fixes builds with --disable-vfp.

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

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent fec76cd4
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
/* some functions use the VFPv2 vector mode which is deprecated in ARMv7-A /* some functions use the VFPv2 vector mode which is deprecated in ARMv7-A
* and might trap on such CPU depending on the OS configuration */ * and might trap on such CPU depending on the OS configuration */
#define have_vfp_vm(flags) \ #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 /* Some functions use the 'setend' instruction which is deprecated on ARMv8
* and serializing on some ARMv7 cores. This macro ensures such functions * and serializing on some ARMv7 cores. This macro ensures such functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment