aboutsummaryrefslogtreecommitdiff
path: root/config.mk.dist
diff options
context:
space:
mode:
authorPierre Blanchard <pierre.blanchard@arm.com>2022-07-21 13:50:32 +0100
committerPierre Blanchard <pierre.blanchard@arm.com>2022-07-21 13:51:04 +0100
commita790e502efe76dbad55a33655f6e3c9066e11325 (patch)
tree9639358704745afa4e47805d9b9640c645a20589 /config.mk.dist
parent83a43cd7afcbdca7e192704121acfad6fa24cb67 (diff)
downloadarm-optimized-routines-a790e502efe76dbad55a33655f6e3c9066e11325.tar.gz
Update config.mk example to define WANT_SVE_MATH.
This is required when running a `make check`, in order to avoid running ulp tests on SVE routines when SVE is disabled. Keeping the definition of cflags for SVE in the config file to allow user control over `-march`.
Diffstat (limited to 'config.mk.dist')
-rw-r--r--config.mk.dist8
1 files changed, 6 insertions, 2 deletions
diff --git a/config.mk.dist b/config.mk.dist
index b7fc243..b29a9b0 100644
--- a/config.mk.dist
+++ b/config.mk.dist
@@ -62,8 +62,12 @@ math-cflags += -ffp-contract=fast -fno-math-errno
# Disable vector math code
#math-cflags += -DWANT_VMATH=0
-# Enable SVE vector code
-#math-cflags += -march=armv8.2-a+sve -DWANT_SVE_MATH=1
+# Disable/enable SVE vector math code and tests
+WANT_SVE_MATH = 0
+ifeq ($(WANT_SVE_MATH), 1)
+ math-cflags += -march=armv8.2-a+sve
+endif
+math-cflags += -DWANT_SVE_MATH=$(WANT_SVE_MATH)
# Disable fenv checks
#math-ulpflags = -q -f