From e18743072bc7fd56ec812e52dcfde5b686d1df8f Mon Sep 17 00:00:00 2001 From: Kwok Cheung Yeung Date: Fri, 2 Dec 2022 20:00:11 +0000 Subject: amdgcn: Add vectorized math routines This implements a set of vectorized math routines to be used by the compiler auto-vectorizer. Versions for vectors with 2 lanes up to 64 lanes (in powers of 2) are provided. These routines are based on the scalar versions of the math routines in libm/common, libm/math and libm/mathfp. They make extensive use of the GCC C vector extensions and GCN-specific builtins in GCC. --- newlib/configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'newlib/configure') diff --git a/newlib/configure b/newlib/configure index 0b6ec15e9..f29aca5d3 100755 --- a/newlib/configure +++ b/newlib/configure @@ -623,6 +623,8 @@ HAVE_LIBM_MACHINE_I386_FALSE HAVE_LIBM_MACHINE_I386_TRUE HAVE_LIBM_MACHINE_ARM_FALSE HAVE_LIBM_MACHINE_ARM_TRUE +HAVE_LIBM_MACHINE_AMDGCN_FALSE +HAVE_LIBM_MACHINE_AMDGCN_TRUE HAVE_LIBM_MACHINE_AARCH64_FALSE HAVE_LIBM_MACHINE_AARCH64_TRUE HAS_NDS32_FPU_DP_FALSE @@ -6216,6 +6218,14 @@ else HAVE_LIBM_MACHINE_AARCH64_FALSE= fi + if test "${libm_machine_dir}" = "amdgcn"; then + HAVE_LIBM_MACHINE_AMDGCN_TRUE= + HAVE_LIBM_MACHINE_AMDGCN_FALSE='#' +else + HAVE_LIBM_MACHINE_AMDGCN_TRUE='#' + HAVE_LIBM_MACHINE_AMDGCN_FALSE= +fi + if test "${libm_machine_dir}" = "arm"; then HAVE_LIBM_MACHINE_ARM_TRUE= HAVE_LIBM_MACHINE_ARM_FALSE='#' @@ -7875,6 +7885,10 @@ if test -z "${HAVE_LIBM_MACHINE_AARCH64_TRUE}" && test -z "${HAVE_LIBM_MACHINE_A as_fn_error $? "conditional \"HAVE_LIBM_MACHINE_AARCH64\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_LIBM_MACHINE_AMDGCN_TRUE}" && test -z "${HAVE_LIBM_MACHINE_AMDGCN_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIBM_MACHINE_AMDGCN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_LIBM_MACHINE_ARM_TRUE}" && test -z "${HAVE_LIBM_MACHINE_ARM_FALSE}"; then as_fn_error $? "conditional \"HAVE_LIBM_MACHINE_ARM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 -- cgit v1.2.3