about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
blob: f2236f0eec37453005a72e3f681add0376892318 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <sysdep.h>

	.text
ENTRY(__llrintf)
	.type	__llrintf, @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(__llrintf_vis3), %o1
	xor	%o1, %gdop_lox10(__llrintf_vis3), %o1
#  else
	set	__llrintf_vis3, %o1
#  endif
	ba	10f
	 nop
9:
# endif
# ifdef SHARED
	sethi	%gdop_hix22(__llrintf_generic), %o1
	xor	%o1, %gdop_lox10(__llrintf_generic), %o1
# else
	set	__llrintf_generic, %o1
# endif
# ifdef HAVE_AS_VIS3_SUPPORT
10:
# endif
# ifdef SHARED
	add	%o3, %o1, %o1
# endif
	retl
	 mov	%o1, %o0
END(__llrintf)
weak_alias (__llrintf, llrintf)

strong_alias (__llrintf, __lllrintf)
weak_alias (__lllrintf, lllrintf)

# undef weak_alias
# define weak_alias(a, b)
# undef strong_alias
# define strong_alias(a, b)

#define __llrintf __llrintf_generic

#include "../s_llrintf.S"