checkasm: Reinstate check for TRIM_DSP_FUNCTIONS

This was lost in 3a2a874994.

Without this, checkasm ends up printing a quite confusing output
consisting only of the functions that have two or more assembly
implementations, if trim_dsp happens to be enabled.
This commit is contained in:
Martin Storsjö
2026-01-14 22:29:38 +02:00
parent afd13d8906
commit 04b69f93e5
+7
View File
@@ -27,6 +27,8 @@
#include "config.h" #include "config.h"
#include <stdio.h>
#include <checkasm/checkasm.h> #include <checkasm/checkasm.h>
#include "src/cpu.h" #include "src/cpu.h"
@@ -93,6 +95,11 @@ static void set_cpu_flags(CheckasmCpu flags)
int main(int argc, const char *argv[]) int main(int argc, const char *argv[])
{ {
#if TRIM_DSP_FUNCTIONS
fprintf(stderr, "checkasm: reference functions unavailable, reconfigure using '-Dtrim_dsp=false'\n");
return 0;
#endif
CheckasmConfig cfg = { CheckasmConfig cfg = {
.cpu_flags = flags, .cpu_flags = flags,
.tests = tests, .tests = tests,