aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-07-20 22:30:24 +0000
committerMåns Rullgård <mans@mansr.com>2009-07-20 22:30:24 +0000
commitce742de22cd939c419b22535242350134e685a28 (patch)
tree6626aba5c72230a0ad486395b630179bc1ce089a
parent5cf20d07ad897740ab834e60e137abe551aedece (diff)
downloadffmpeg-ce742de22cd939c419b22535242350134e685a28.tar.gz
ARM: check for VFP register arguments
Originally committed as revision 19474 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure6
-rw-r--r--libavcodec/arm/asm.S9
2 files changed, 15 insertions, 0 deletions
diff --git a/configure b/configure
index ec0eab8d36..f08c1de8cb 100755
--- a/configure
+++ b/configure
@@ -958,6 +958,7 @@ HAVE_LIST="
termios_h
threads
truncf
+ vfp_args
VirtualAlloc
winsock2_h
xform_asm
@@ -2042,6 +2043,11 @@ fi
# check for assembler specific support
+enabled arm && check_ld <<EOF && enable vfp_args
+__asm__ (".eabi_attribute 28, 1");
+int main(void) { return 0; }
+EOF
+
enabled mips && check_asm loongson '"dmult.g $1, $2, $3"'
enabled ppc && check_asm dcbzl '"dcbzl 0, 1"'
diff --git a/libavcodec/arm/asm.S b/libavcodec/arm/asm.S
index 69d83488ad..087b279651 100644
--- a/libavcodec/arm/asm.S
+++ b/libavcodec/arm/asm.S
@@ -45,3 +45,12 @@
ldr \rd, =\val
#endif
.endm
+
+#if HAVE_VFP_ARGS
+ .eabi_attribute 28, 1
+# define VFP
+# define NOVFP @
+#else
+# define VFP @
+# define NOVFP
+#endif