diff options
author | Jeffrey Walton <noloader@gmail.com> | 2022-10-01 04:24:34 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2022-10-01 04:24:34 -0400 |
commit | cb6804da176377ea0e2fa73da19d56b7ee752a3e (patch) | |
tree | c41d5ee8dacc12c257d523eac3464f2f42e2e0c3 | |
parent | 31fa3384160071793bc428a32383938551b3652c (diff) | |
download | cryptopp-git-cb6804da176377ea0e2fa73da19d56b7ee752a3e.tar.gz |
Add SSE3 tests (GH #1163)
-rw-r--r-- | GNUmakefile | 7 | ||||
-rw-r--r-- | GNUmakefile-cross | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index deffca90..7cf59c95 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -304,6 +304,13 @@ ifeq ($(DETECT_FEATURES),1) # Need SSE2 or higher for these tests ifneq ($(SSE2_FLAG),) + TPROG = TestPrograms/test_x86_sse3.cpp + TOPT = $(SSE3_FLAG) + HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w) + ifneq ($(strip $(HAVE_OPT)),0) + SSE3_FLAG = + endif + TPROG = TestPrograms/test_x86_ssse3.cpp TOPT = $(SSSE3_FLAG) HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w) diff --git a/GNUmakefile-cross b/GNUmakefile-cross index 4902f9a7..669dc52c 100644 --- a/GNUmakefile-cross +++ b/GNUmakefile-cross @@ -257,6 +257,14 @@ ifeq ($(DETECT_FEATURES),1) # Need SSE2 or higher for these tests ifneq ($(SSE2_FLAG),) + + TPROG = TestPrograms/test_x86_sse3.cpp + TOPT = $(SSE3_FLAG) + HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w) + ifneq ($(strip $(HAVE_OPT)),0) + SSE3_FLAG = + endif + TPROG = TestPrograms/test_x86_ssse3.cpp TOPT = $(SSSE3_FLAG) HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w) |