diff options
author | Joe Ramsay <Joe.Ramsay@arm.com> | 2022-11-17 11:16:42 +0000 |
---|---|---|
committer | Joe Ramsay <joe.ramsay@arm.com> | 2022-11-17 11:16:42 +0000 |
commit | d16610ab7efa066d49a1cdeb101de32bcae962a0 (patch) | |
tree | 7ef1042d3bdc96370bf45fa5ee4cdc34282bcc68 | |
parent | 50fec2627f460a4b30cbfd11f4e4609cdcd2aa4d (diff) | |
download | arm-optimized-routines-d16610ab7efa066d49a1cdeb101de32bcae962a0.tar.gz |
math/test: Fix ulp for non-AArch64 targets
fv and dv are only declared under __aarch64__ - for other targets the
new -c option should be disabled.
-rw-r--r-- | math/test/ulp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/math/test/ulp.c b/math/test/ulp.c index e011ae3..8589ee9 100644 --- a/math/test/ulp.c +++ b/math/test/ulp.c @@ -634,9 +634,11 @@ usage (void) puts ("-q: quiet."); puts ("-m: use mpfr even if faster method is available."); puts ("-f: disable fenv testing (rounding modes and exceptions)."); +#if __aarch64__ && WANT_VMATH puts ("-c: neutral 'control value' to test behaviour when one lane can affect another. \n" " This should be different from tested input in other lanes, and non-special \n" " (i.e. should not trigger fenv exceptions). Default is 1."); +#endif puts ("Supported func:"); for (const struct fun *f = fun; f->name; f++) printf ("\t%s\n", f->name); @@ -804,12 +806,14 @@ main (int argc, char *argv[]) conf.rc = argv[0][0]; } break; +#if __aarch64__ && WANT_VMATH case 'c': argc--; argv++; fv[0] = strtof(argv[0], 0); dv[0] = strtod(argv[0], 0); break; +#endif default: usage (); } |