|
Packit Service |
82fcde |
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
|
|
Packit Service |
82fcde |
# Local configure fragment for sysdeps/s390.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_tbegin" >&5
|
|
Packit Service |
82fcde |
$as_echo_n "checking for __builtin_tbegin... " >&6; }
|
|
Packit Service |
82fcde |
if ${libc_cv_gcc_builtin_tbegin+:} false; then :
|
|
Packit Service |
82fcde |
$as_echo_n "(cached) " >&6
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
cat > conftest.c <<\EOF
|
|
Packit Service |
82fcde |
#include <htmintrin.h>
|
|
Packit Service |
82fcde |
void testtransaction ()
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
if (__builtin_tbegin (0) == _HTM_TBEGIN_STARTED)
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
__builtin_tend ();
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
EOF
|
|
Packit Service |
82fcde |
if { ac_try='${CC-cc} -mhtm -O2 -S conftest.c -o - | grep -w tbegin > /dev/null'
|
|
Packit Service |
82fcde |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
|
Packit Service |
82fcde |
(eval $ac_try) 2>&5
|
|
Packit Service |
82fcde |
ac_status=$?
|
|
Packit Service |
82fcde |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
Packit Service |
82fcde |
test $ac_status = 0; }; } ;
|
|
Packit Service |
82fcde |
then
|
|
Packit Service |
82fcde |
libc_cv_gcc_builtin_tbegin=yes
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
libc_cv_gcc_builtin_tbegin=no
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
rm -f conftest*
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_tbegin" >&5
|
|
Packit Service |
82fcde |
$as_echo "$libc_cv_gcc_builtin_tbegin" >&6; }
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
if test "$libc_cv_gcc_builtin_tbegin" = no ; then
|
|
Packit Service |
82fcde |
critic_missing="$critic_missing The used GCC has no support for __builtin_tbegin, which is needed for lock-elision on target S390."
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 vector instruction support" >&5
|
|
Packit Service |
82fcde |
$as_echo_n "checking for S390 vector instruction support... " >&6; }
|
|
Packit Service |
82fcde |
if ${libc_cv_asm_s390_vx+:} false; then :
|
|
Packit Service |
82fcde |
$as_echo_n "(cached) " >&6
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
cat > conftest.c <<\EOF
|
|
Packit Service |
82fcde |
void testvecinsn ()
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
__asm__ (".machine \"z13\" \n\t"
|
|
Packit Service |
82fcde |
".machinemode \"zarch_nohighgprs\" \n\t"
|
|
Packit Service |
82fcde |
"vistrbs %%v16,%%v17 \n\t"
|
|
Packit Service |
82fcde |
"locghie %%r1,0" : :);
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
EOF
|
|
Packit Service |
82fcde |
if { ac_try='${CC-cc} --shared conftest.c -o conftest.o &> /dev/null'
|
|
Packit Service |
82fcde |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
|
Packit Service |
82fcde |
(eval $ac_try) 2>&5
|
|
Packit Service |
82fcde |
ac_status=$?
|
|
Packit Service |
82fcde |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
Packit Service |
82fcde |
test $ac_status = 0; }; } ;
|
|
Packit Service |
82fcde |
then
|
|
Packit Service |
82fcde |
libc_cv_asm_s390_vx=yes
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
libc_cv_asm_s390_vx=no
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
rm -f conftest*
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_vx" >&5
|
|
Packit Service |
82fcde |
$as_echo "$libc_cv_asm_s390_vx" >&6; }
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
if test "$libc_cv_asm_s390_vx" = yes ;
|
|
Packit Service |
82fcde |
then
|
|
Packit Service |
82fcde |
$as_echo "#define HAVE_S390_VX_ASM_SUPPORT 1" >>confdefs.h
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use binutils with vector-support in order to use optimized implementations." >&5
|
|
Packit Service |
82fcde |
$as_echo "$as_me: WARNING: Use binutils with vector-support in order to use optimized implementations." >&2;}
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 vector support in gcc" >&5
|
|
Packit Service |
82fcde |
$as_echo_n "checking for S390 vector support in gcc... " >&6; }
|
|
Packit Service |
82fcde |
if ${libc_cv_gcc_s390_vx+:} false; then :
|
|
Packit Service |
82fcde |
$as_echo_n "(cached) " >&6
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
cat > conftest.c <<\EOF
|
|
Packit Service |
82fcde |
void testvecclobber ()
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
__asm__ ("" : : : "v16");
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
EOF
|
|
Packit Service |
82fcde |
if { ac_try='${CC-cc} --shared conftest.c -o conftest.o &> /dev/null'
|
|
Packit Service |
82fcde |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
|
Packit Service |
82fcde |
(eval $ac_try) 2>&5
|
|
Packit Service |
82fcde |
ac_status=$?
|
|
Packit Service |
82fcde |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
Packit Service |
82fcde |
test $ac_status = 0; }; } ;
|
|
Packit Service |
82fcde |
then
|
|
Packit Service |
82fcde |
libc_cv_gcc_s390_vx=yes
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
libc_cv_gcc_s390_vx=no
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
rm -f conftest*
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_s390_vx" >&5
|
|
Packit Service |
82fcde |
$as_echo "$libc_cv_gcc_s390_vx" >&6; }
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
if test "$libc_cv_gcc_s390_vx" = yes ;
|
|
Packit Service |
82fcde |
then
|
|
Packit Service |
82fcde |
$as_echo "#define HAVE_S390_VX_GCC_SUPPORT 1" >>confdefs.h
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
|
|
Packit Service |
83b061 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 z10 zarch instruction support as default" >&5
|
|
Packit Service |
83b061 |
$as_echo_n "checking for S390 z10 zarch instruction support as default... " >&6; }
|
|
Packit Service |
83b061 |
if ${libc_cv_asm_s390_min_z10_zarch+:} false; then :
|
|
Packit Service |
83b061 |
$as_echo_n "(cached) " >&6
|
|
Packit Service |
83b061 |
else
|
|
Packit Service |
83b061 |
cat > conftest.c <<\EOF
|
|
Packit Service |
83b061 |
void testinsn (void *a, void *b, int n)
|
|
Packit Service |
83b061 |
{
|
|
Packit Service |
83b061 |
__asm__ ("exrl %2,1f \n\t"
|
|
Packit Service |
83b061 |
"j 2f \n\t"
|
|
Packit Service |
83b061 |
"1: mvc 0(1,%0),0(%1) \n\t"
|
|
Packit Service |
83b061 |
"2:"
|
|
Packit Service |
83b061 |
: : "a" (a), "a" (b), "d" (n)
|
|
Packit Service |
83b061 |
: "memory", "cc");
|
|
Packit Service |
83b061 |
}
|
|
Packit Service |
83b061 |
EOF
|
|
Packit Service |
83b061 |
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS --shared conftest.c
|
|
Packit Service |
83b061 |
-o conftest.o &> /dev/null'
|
|
Packit Service |
83b061 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
|
Packit Service |
83b061 |
(eval $ac_try) 2>&5
|
|
Packit Service |
83b061 |
ac_status=$?
|
|
Packit Service |
83b061 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
Packit Service |
83b061 |
test $ac_status = 0; }; } ;
|
|
Packit Service |
83b061 |
then
|
|
Packit Service |
83b061 |
libc_cv_asm_s390_min_z10_zarch=yes
|
|
Packit Service |
83b061 |
else
|
|
Packit Service |
83b061 |
libc_cv_asm_s390_min_z10_zarch=no
|
|
Packit Service |
83b061 |
fi
|
|
Packit Service |
83b061 |
rm -f conftest*
|
|
Packit Service |
83b061 |
fi
|
|
Packit Service |
83b061 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z10_zarch" >&5
|
|
Packit Service |
83b061 |
$as_echo "$libc_cv_asm_s390_min_z10_zarch" >&6; }
|
|
Packit Service |
83b061 |
|
|
Packit Service |
83b061 |
if test "$libc_cv_asm_s390_min_z10_zarch" = yes ;
|
|
Packit Service |
83b061 |
then
|
|
Packit Service |
83b061 |
$as_echo "#define HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT 1" >>confdefs.h
|
|
Packit Service |
83b061 |
|
|
Packit Service |
83b061 |
fi
|
|
Packit Service |
83b061 |
|
|
Packit Service |
82fcde |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 z196 zarch instruction support as default" >&5
|
|
Packit Service |
82fcde |
$as_echo_n "checking for S390 z196 zarch instruction support as default... " >&6; }
|
|
Packit Service |
82fcde |
if ${libc_cv_asm_s390_min_z196_zarch+:} false; then :
|
|
Packit Service |
82fcde |
$as_echo_n "(cached) " >&6
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
cat > conftest.c <<\EOF
|
|
Packit Service |
82fcde |
float testinsn (double e)
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
float d;
|
|
Packit Service |
82fcde |
__asm__ ("ledbra %0,5,%1,4" : "=f" (d) : "f" (e) );
|
|
Packit Service |
82fcde |
return d;
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
EOF
|
|
Packit Service |
82fcde |
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS --shared conftest.c
|
|
Packit Service |
82fcde |
-o conftest.o &> /dev/null'
|
|
Packit Service |
82fcde |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
|
Packit Service |
82fcde |
(eval $ac_try) 2>&5
|
|
Packit Service |
82fcde |
ac_status=$?
|
|
Packit Service |
82fcde |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
Packit Service |
82fcde |
test $ac_status = 0; }; } ;
|
|
Packit Service |
82fcde |
then
|
|
Packit Service |
82fcde |
libc_cv_asm_s390_min_z196_zarch=yes
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
libc_cv_asm_s390_min_z196_zarch=no
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
rm -f conftest*
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z196_zarch" >&5
|
|
Packit Service |
82fcde |
$as_echo "$libc_cv_asm_s390_min_z196_zarch" >&6; }
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
if test "$libc_cv_asm_s390_min_z196_zarch" = yes ;
|
|
Packit Service |
82fcde |
then
|
|
Packit Service |
82fcde |
$as_echo "#define HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT 1" >>confdefs.h
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
|
|
Packit Service |
14778f |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 z13 zarch instruction support as default" >&5
|
|
Packit Service |
14778f |
$as_echo_n "checking for S390 z13 zarch instruction support as default... " >&6; }
|
|
Packit Service |
14778f |
if ${libc_cv_asm_s390_min_z13_zarch+:} false; then :
|
|
Packit Service |
14778f |
$as_echo_n "(cached) " >&6
|
|
Packit Service |
14778f |
else
|
|
Packit Service |
14778f |
cat > conftest.c <<\EOF
|
|
Packit Service |
14778f |
int testinsn (void)
|
|
Packit Service |
14778f |
{
|
|
Packit Service |
14778f |
int i;
|
|
Packit Service |
14778f |
__asm__ ("vl %%v16,0(%%r15)\n\t"
|
|
Packit Service |
14778f |
"vlgvf %0,%%v16,0"
|
|
Packit Service |
14778f |
: "=d" (i) : : "memory", "v16");
|
|
Packit Service |
14778f |
return i;
|
|
Packit Service |
14778f |
}
|
|
Packit Service |
14778f |
EOF
|
|
Packit Service |
14778f |
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS --shared conftest.c
|
|
Packit Service |
14778f |
-o conftest.o &> /dev/null'
|
|
Packit Service |
14778f |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
|
Packit Service |
14778f |
(eval $ac_try) 2>&5
|
|
Packit Service |
14778f |
ac_status=$?
|
|
Packit Service |
14778f |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
Packit Service |
14778f |
test $ac_status = 0; }; } ;
|
|
Packit Service |
14778f |
then
|
|
Packit Service |
14778f |
libc_cv_asm_s390_min_z13_zarch=yes
|
|
Packit Service |
14778f |
else
|
|
Packit Service |
14778f |
libc_cv_asm_s390_min_z13_zarch=no
|
|
Packit Service |
14778f |
fi
|
|
Packit Service |
14778f |
rm -f conftest*
|
|
Packit Service |
14778f |
fi
|
|
Packit Service |
14778f |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z13_zarch" >&5
|
|
Packit Service |
14778f |
$as_echo "$libc_cv_asm_s390_min_z13_zarch" >&6; }
|
|
Packit Service |
14778f |
|
|
Packit Service |
14778f |
if test "$libc_cv_asm_s390_min_z13_zarch" = yes ;
|
|
Packit Service |
14778f |
then
|
|
Packit Service |
14778f |
$as_echo "#define HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT 1" >>confdefs.h
|
|
Packit Service |
14778f |
|
|
Packit Service |
14778f |
fi
|
|
Packit Service |
14778f |
|
|
Packit Service |
82fcde |
test -n "$critic_missing" && as_fn_error $? "
|
|
Packit Service |
82fcde |
*** $critic_missing" "$LINENO" 5
|