Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKwok Cheung Yeung <kcy@codesourcery.com>2022-12-02 23:00:11 +0300
committerJeff Johnston <jjohnstn@redhat.com>2022-12-16 20:18:14 +0300
commit125e39bfea1a39341a60348c93a65cf4894e0f2a (patch)
tree1f96cbfd9b4079cd8bec9f9ee837fade1585ab30 /newlib/configure
parent8fdc201ec3a3c32f724d06f2859b700f95dced86 (diff)
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.
Diffstat (limited to 'newlib/configure')
-rwxr-xr-xnewlib/configure14
1 files changed, 14 insertions, 0 deletions
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