blob: 90a86f6da3ca73fa22f83fb407d5fc22a1d5459a [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/sparc.
3
4# Check for support of VIS3 et al. instructions in the assembler.
5{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc assembler VIS3 support" >&5
6$as_echo_n "checking for sparc assembler VIS3 support... " >&6; }
7if ${libc_cv_sparc_as_vis3+:} false; then :
8 $as_echo_n "(cached) " >&6
9else
10 cat > conftest.S <<\EOF
11 .text
12foo: fmadds %f1, %f2, %f3, %f5
13 fmaddd %f2, %f4, %f8, %f10
14 fhadds %f2, %f3, %f5
15 fhaddd %f4, %f8, %f10
16 pdistn %f2, %f4, %g1
17 movdtox %f10, %o0
18 movstouw %f9, %o1
19 movstosw %f7, %o2
20 movxtod %o3, %f18
21 movwtos %o4, %f15
22 flcmps %fcc0, %f3, %f5
23 flcmpd %fcc1, %f4, %f6
24EOF
25if { ac_try='${CC-cc} -c $CFLAGS -Wa,-Av9d conftest.S'
26 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27 (eval $ac_try) 2>&5
28 ac_status=$?
29 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30 test $ac_status = 0; }; }; then
31 libc_cv_sparc_as_vis3=yes
32else
33 libc_cv_sparc_as_vis3=no
34fi
35rm -f conftest*
36fi
37{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc_as_vis3" >&5
38$as_echo "$libc_cv_sparc_as_vis3" >&6; }
39if test $libc_cv_sparc_as_vis3 = yes; then
40 $as_echo "#define HAVE_AS_VIS3_SUPPORT 1" >>confdefs.h
41
42fi
43config_vars="$config_vars
44have-as-vis3 = $libc_cv_sparc_as_vis3"
45
46# Check for a GCC emitting GOTDATA relocations.
47{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc gcc GOTDATA reloc support" >&5
48$as_echo_n "checking for sparc gcc GOTDATA reloc support... " >&6; }
49if ${libc_cv_sparc_gcc_gotdata+:} false; then :
50 $as_echo_n "(cached) " >&6
51else
52 cat > conftest.c <<\EOF
53int data;
54int foo(void)
55{
56 return data;
57}
58EOF
59libc_cv_sparc_gcc_gotdata=no
60if { ac_try='${CC-cc} -S $CFLAGS -O2 -fPIC conftest.c 1>&5'
61 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
62 (eval $ac_try) 2>&5
63 ac_status=$?
64 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65 test $ac_status = 0; }; }; then
66 if grep -q 'gdop_hix22' conftest.s \
67 && grep -q 'gdop_lox10' conftest.s; then
68 libc_cv_sparc_gcc_gotdata=yes
69 fi
70fi
71rm -f conftest*
72fi
73{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc_gcc_gotdata" >&5
74$as_echo "$libc_cv_sparc_gcc_gotdata" >&6; }
75if test $libc_cv_sparc_gcc_gotdata = yes; then
76 $as_echo "#define HAVE_GCC_GOTDATA 1" >>confdefs.h
77
78fi
79
80if test $libc_cv_sparc_gcc_gotdata = yes; then
81 $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
82
83fi