aboutsummaryrefslogtreecommitdiff
path: root/config.mk.dist
diff options
context:
space:
mode:
authorJoe Ramsay <Joe.Ramsay@arm.com>2022-12-07 15:31:03 +0000
committerJoe Ramsay <joe.ramsay@arm.com>2022-12-07 15:31:03 +0000
commita5e45e4e299f5fe6b51601694cc3cb066a20723a (patch)
tree06f65610043a940b20a2aa3aaeda1d0686b075e7 /config.mk.dist
parent7d205b8787a4462d6e605ee826edf2666f899a34 (diff)
downloadarm-optimized-routines-a5e45e4e299f5fe6b51601694cc3cb066a20723a.tar.gz
math: Set fenv exceptions for several Neon routines
In most cases, we mask lanes which should not trigger exceptions with a neutral value, then let the existing special-case handler fix them up later. For exp and exp2 we replace the more complex special-case handler with a simple scalar fallback. All new behaviour is tested in runulp.sh, with a new option to pass -f to the run line. We also extend the fenv testing to Neon log and logf, which already triggered exceptions correctly. New behaviour is mostly hidden behind a new config setting, WANT_SIMD_EXCEPT.
Diffstat (limited to 'config.mk.dist')
-rw-r--r--config.mk.dist4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.mk.dist b/config.mk.dist
index 25cfdca..352136d 100644
--- a/config.mk.dist
+++ b/config.mk.dist
@@ -75,6 +75,10 @@ math-cflags += -DWANT_SVE_MATH=$(WANT_SVE_MATH)
WANT_ERRNO = 0
math-cflags += -DWANT_ERRNO=$(WANT_ERRNO)
+# If set to 1, set fenv in vector math routines.
+WANT_SIMD_EXCEPT = 0
+math-cflags += -DWANT_SIMD_EXCEPT=$(WANT_SIMD_EXCEPT)
+
# Disable fenv checks
#math-ulpflags = -q -f
#math-testflags = -nostatus