OSDN Git Service

ARM: check for VFP register arguments
authorMåns Rullgård <mans@mansr.com>
Mon, 20 Jul 2009 22:30:24 +0000 (22:30 +0000)
committerMåns Rullgård <mans@mansr.com>
Mon, 20 Jul 2009 22:30:24 +0000 (22:30 +0000)
Originally committed as revision 19474 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure
libavcodec/arm/asm.S

index ec0eab8..f08c1de 100755 (executable)
--- 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"'
index 69d8348..087b279 100644 (file)
         ldr             \rd, =\val
 #endif
         .endm
+
+#if HAVE_VFP_ARGS
+        .eabi_attribute 28, 1
+#   define VFP
+#   define NOVFP @
+#else
+#   define VFP   @
+#   define NOVFP
+#endif