]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S
Create a header for sparc ifunc expansion and use it for VIS3 ifuncs.
[thirdparty/glibc.git] / sysdeps / sparc / sparc64 / fpu / multiarch / s_finitef.S
index 65ca7fd1c618d08dfdd2dc36c6fe79a04958fcbf..cafd41fd92fe45c0ca2a493d1f2805b7f3342b31 100644 (file)
@@ -1,41 +1,7 @@
-#include <sysdep.h>
+#include <sparc-ifunc.h>
+
+SPARC_ASM_VIS3_IFUNC(finitef)
 
-       .text
-ENTRY(__finitef)
-       .type   __finitef, @gnu_indirect_function
-# ifdef SHARED
-       SETUP_PIC_REG_LEAF(o3, o5)
-# endif
-# ifdef HAVE_AS_VIS3_SUPPORT
-       set     HWCAP_SPARC_VIS3, %o1
-       andcc   %o0, %o1, %g0
-       be      9f
-        nop
-#  ifdef SHARED
-       sethi   %gdop_hix22(__finitef_vis3), %o1
-       xor     %o1, %gdop_lox10(__finitef_vis3), %o1
-#  else
-       set     __finitef_vis3, %o1
-#  endif
-       ba      10f
-        nop
-9:
-# endif
-# ifdef SHARED
-       sethi   %gdop_hix22(__finitef_generic), %o1
-       xor     %o1, %gdop_lox10(__finitef_generic), %o1
-# else
-       set     __finitef_generic, %o1
-# endif
-# ifdef HAVE_AS_VIS3_SUPPORT
-10:
-# endif
-# ifdef SHARED
-       add     %o3, %o1, %o1
-# endif
-       retl
-        mov    %o1, %o0
-END(__finitef)
 hidden_def (__finitef)
 weak_alias (__finitef, finitef)