configure 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
  2. # Local configure fragment for sysdeps/s390.
  3. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for S390 vector instruction support" >&5
  4. printf %s "checking for S390 vector instruction support... " >&6; }
  5. if test ${libc_cv_asm_s390_vx+y}
  6. then :
  7. printf %s "(cached) " >&6
  8. else case e in #(
  9. e)
  10. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11. /* end confdefs.h. */
  12. void testvecinsn ()
  13. {
  14. __asm__ (".machine \"z13\" \n\t"
  15. ".machinemode \"zarch_nohighgprs\" \n\t"
  16. "vistrbs %%v16,%%v17 \n\t"
  17. "locghie %%r1,0" : :);
  18. }
  19. _ACEOF
  20. if ac_fn_c_try_compile "$LINENO"
  21. then :
  22. libc_cv_asm_s390_vx=yes
  23. else case e in #(
  24. e) libc_cv_asm_s390_vx=no ;;
  25. esac
  26. fi
  27. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  28. esac
  29. fi
  30. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_vx" >&5
  31. printf "%s\n" "$libc_cv_asm_s390_vx" >&6; }
  32. if test "$libc_cv_asm_s390_vx" = yes ;
  33. then
  34. printf "%s\n" "#define HAVE_S390_VX_ASM_SUPPORT 1" >>confdefs.h
  35. else
  36. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Use binutils with vector-support in order to use optimized implementations." >&5
  37. printf "%s\n" "$as_me: WARNING: Use binutils with vector-support in order to use optimized implementations." >&2;}
  38. fi
  39. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for S390 vector support in gcc" >&5
  40. printf %s "checking for S390 vector support in gcc... " >&6; }
  41. if test ${libc_cv_gcc_s390_vx+y}
  42. then :
  43. printf %s "(cached) " >&6
  44. else case e in #(
  45. e)
  46. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47. /* end confdefs.h. */
  48. void testvecclobber ()
  49. {
  50. __asm__ ("" : : : "v16");
  51. }
  52. _ACEOF
  53. if ac_fn_c_try_compile "$LINENO"
  54. then :
  55. libc_cv_gcc_s390_vx=yes
  56. else case e in #(
  57. e) libc_cv_gcc_s390_vx=no ;;
  58. esac
  59. fi
  60. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  61. esac
  62. fi
  63. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_s390_vx" >&5
  64. printf "%s\n" "$libc_cv_gcc_s390_vx" >&6; }
  65. if test "$libc_cv_gcc_s390_vx" = yes ;
  66. then
  67. printf "%s\n" "#define HAVE_S390_VX_GCC_SUPPORT 1" >>confdefs.h
  68. fi
  69. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for S390 arch13 zarch instruction support" >&5
  70. printf %s "checking for S390 arch13 zarch instruction support... " >&6; }
  71. if test ${libc_cv_asm_s390_arch13+y}
  72. then :
  73. printf %s "(cached) " >&6
  74. else case e in #(
  75. e)
  76. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  77. /* end confdefs.h. */
  78. void testinsn (char *buf)
  79. {
  80. __asm__ (".machine \"arch13\" \n\t"
  81. ".machinemode \"zarch_nohighgprs\" \n\t"
  82. "lghi %%r0,16 \n\t"
  83. "mvcrl 0(%0),32(%0) \n\t"
  84. "vstrs %%v20,%%v20,%%v20,%%v20,0,2"
  85. : : "a" (buf) : "memory", "r0");
  86. }
  87. _ACEOF
  88. if ac_fn_c_try_compile "$LINENO"
  89. then :
  90. libc_cv_asm_s390_arch13=yes
  91. else case e in #(
  92. e) libc_cv_asm_s390_arch13=no ;;
  93. esac
  94. fi
  95. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  96. esac
  97. fi
  98. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_arch13" >&5
  99. printf "%s\n" "$libc_cv_asm_s390_arch13" >&6; }
  100. if test "$libc_cv_asm_s390_arch13" = yes ;
  101. then
  102. printf "%s\n" "#define HAVE_S390_ARCH13_ASM_SUPPORT 1" >>confdefs.h
  103. fi
  104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for S390 z10 zarch instruction support as default" >&5
  105. printf %s "checking for S390 z10 zarch instruction support as default... " >&6; }
  106. if test ${libc_cv_asm_s390_min_z10_zarch+y}
  107. then :
  108. printf %s "(cached) " >&6
  109. else case e in #(
  110. e)
  111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  112. /* end confdefs.h. */
  113. void testinsn (void *a, void *b, int n)
  114. {
  115. __asm__ ("exrl %2,1f \n\t"
  116. "j 2f \n\t"
  117. "1: mvc 0(1,%0),0(%1) \n\t"
  118. "2:"
  119. : : "a" (a), "a" (b), "d" (n)
  120. : "memory", "cc");
  121. }
  122. _ACEOF
  123. if ac_fn_c_try_compile "$LINENO"
  124. then :
  125. libc_cv_asm_s390_min_z10_zarch=yes
  126. else case e in #(
  127. e) libc_cv_asm_s390_min_z10_zarch=no ;;
  128. esac
  129. fi
  130. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  131. esac
  132. fi
  133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z10_zarch" >&5
  134. printf "%s\n" "$libc_cv_asm_s390_min_z10_zarch" >&6; }
  135. if test "$libc_cv_asm_s390_min_z10_zarch" = yes ;
  136. then
  137. printf "%s\n" "#define HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT 1" >>confdefs.h
  138. fi
  139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for S390 z196 zarch instruction support as default" >&5
  140. printf %s "checking for S390 z196 zarch instruction support as default... " >&6; }
  141. if test ${libc_cv_asm_s390_min_z196_zarch+y}
  142. then :
  143. printf %s "(cached) " >&6
  144. else case e in #(
  145. e)
  146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  147. /* end confdefs.h. */
  148. float testinsn (double e)
  149. {
  150. float d;
  151. __asm__ ("ledbra %0,5,%1,4" : "=f" (d) : "f" (e) );
  152. return d;
  153. }
  154. _ACEOF
  155. if ac_fn_c_try_compile "$LINENO"
  156. then :
  157. libc_cv_asm_s390_min_z196_zarch=yes
  158. else case e in #(
  159. e) libc_cv_asm_s390_min_z196_zarch=no ;;
  160. esac
  161. fi
  162. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  163. esac
  164. fi
  165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z196_zarch" >&5
  166. printf "%s\n" "$libc_cv_asm_s390_min_z196_zarch" >&6; }
  167. if test "$libc_cv_asm_s390_min_z196_zarch" = yes ;
  168. then
  169. printf "%s\n" "#define HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT 1" >>confdefs.h
  170. fi
  171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for S390 z13 zarch instruction support as default" >&5
  172. printf %s "checking for S390 z13 zarch instruction support as default... " >&6; }
  173. if test ${libc_cv_asm_s390_min_z13_zarch+y}
  174. then :
  175. printf %s "(cached) " >&6
  176. else case e in #(
  177. e)
  178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  179. /* end confdefs.h. */
  180. int testinsn (void)
  181. {
  182. int i;
  183. __asm__ ("vl %%v16,0(%%r15)\n\t"
  184. "vlgvf %0,%%v16,0"
  185. : "=d" (i) : : "memory", "v16");
  186. return i;
  187. }
  188. _ACEOF
  189. if ac_fn_c_try_compile "$LINENO"
  190. then :
  191. libc_cv_asm_s390_min_z13_zarch=yes
  192. else case e in #(
  193. e) libc_cv_asm_s390_min_z13_zarch=no ;;
  194. esac
  195. fi
  196. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  197. esac
  198. fi
  199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z13_zarch" >&5
  200. printf "%s\n" "$libc_cv_asm_s390_min_z13_zarch" >&6; }
  201. if test "$libc_cv_asm_s390_min_z13_zarch" = yes ;
  202. then
  203. printf "%s\n" "#define HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT 1" >>confdefs.h
  204. fi
  205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for S390 arch13 zarch instruction support as default" >&5
  206. printf %s "checking for S390 arch13 zarch instruction support as default... " >&6; }
  207. if test ${libc_cv_asm_s390_min_arch13_zarch+y}
  208. then :
  209. printf %s "(cached) " >&6
  210. else case e in #(
  211. e)
  212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  213. /* end confdefs.h. */
  214. void testinsn (char *buf)
  215. {
  216. __asm__ ("lghi %%r0,16 \n\t"
  217. "mvcrl 0(%0),32(%0) \n\t"
  218. "vstrs %%v20,%%v20,%%v20,%%v20,0,2"
  219. : : "a" (buf) : "memory", "r0");
  220. }
  221. _ACEOF
  222. if ac_fn_c_try_compile "$LINENO"
  223. then :
  224. libc_cv_asm_s390_min_arch13_zarch=yes
  225. else case e in #(
  226. e) libc_cv_asm_s390_min_arch13_zarch=no ;;
  227. esac
  228. fi
  229. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  230. esac
  231. fi
  232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_arch13_zarch" >&5
  233. printf "%s\n" "$libc_cv_asm_s390_min_arch13_zarch" >&6; }
  234. if test "$libc_cv_asm_s390_min_arch13_zarch" = yes ;
  235. then
  236. printf "%s\n" "#define HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT 1" >>confdefs.h
  237. fi
  238. test -n "$critic_missing" && as_fn_error $? "
  239. *** $critic_missing" "$LINENO" 5