mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
cheackasm/arm: remove NEON instructions from checkasm_checked_call_vfp
Fixes AS error on non NEON builds introduced in 71a0472114. Also
set the fpu directly to vfp in checkasm.S to cause build errors on NEON
builds.
This commit is contained in:
parent
446353ea18
commit
59aeed93e4
1 changed files with 10 additions and 3 deletions
|
|
@ -22,6 +22,12 @@
|
||||||
|
|
||||||
#include "libavutil/arm/asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
|
/* override fpu so that NEON instructions are rejected */
|
||||||
|
#if HAVE_VFP
|
||||||
|
.fpu vfp
|
||||||
|
ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch
|
||||||
|
#endif
|
||||||
|
|
||||||
const register_init, align=3
|
const register_init, align=3
|
||||||
.quad 0x21f86d66c8ca00ce
|
.quad 0x21f86d66c8ca00ce
|
||||||
.quad 0x75b6ba21077c48ad
|
.quad 0x75b6ba21077c48ad
|
||||||
|
|
@ -85,9 +91,10 @@ function checkasm_checked_call_\variant, export=1
|
||||||
movrel r12, register_init
|
movrel r12, register_init
|
||||||
.ifc \variant, vfp
|
.ifc \variant, vfp
|
||||||
.macro check_reg_vfp, dreg, offset
|
.macro check_reg_vfp, dreg, offset
|
||||||
vldr d0, [r12, #8 * (\offset)]
|
ldrd r2, r3, [r12, #8 * (\offset)]
|
||||||
veor d0, d0, \dreg
|
vmov r0, lr, \dreg
|
||||||
vmov r2, r3, d0
|
eor r2, r2, r0
|
||||||
|
eor r3, r3, lr
|
||||||
orrs r2, r2, r3
|
orrs r2, r2, r3
|
||||||
bne 4f
|
bne 4f
|
||||||
.endm
|
.endm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue