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>2023-01-18 21:22:58 +0300
commite18743072bc7fd56ec812e52dcfde5b686d1df8f (patch)
tree8d8143f9776e614163eae1cb8aa2e2491d51b776 /newlib/configure
parent31302b267b86a9e9190dd260f2ff4f0c74410bf3 (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