diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/x86_64/tst-audit10.c | 11 | ||||
-rw-r--r-- | sysdeps/x86_64/tst-audit3.c | 7 | ||||
-rw-r--r-- | sysdeps/x86_64/tst-audit4.c | 11 | ||||
-rw-r--r-- | sysdeps/x86_64/tst-audit5.c | 7 |
4 files changed, 24 insertions, 12 deletions
diff --git a/sysdeps/x86_64/tst-audit10.c b/sysdeps/x86_64/tst-audit10.c index 24c9696839..8d6721ac8c 100644 --- a/sysdeps/x86_64/tst-audit10.c +++ b/sysdeps/x86_64/tst-audit10.c @@ -45,8 +45,8 @@ avx512_enabled (void) extern __m512i audit_test (__m512i, __m512i, __m512i, __m512i, __m512i, __m512i, __m512i, __m512i); -int -main (void) +static int +do_test (void) { /* Run AVX512 test only if AVX512 is supported. */ if (avx512_enabled ()) @@ -62,9 +62,12 @@ main (void) return 0; } #else -int -main (void) +static int +do_test (void) { return 0; } #endif + +#define TEST_FUNCTION do_test () +#include "../../test-skeleton.c" diff --git a/sysdeps/x86_64/tst-audit3.c b/sysdeps/x86_64/tst-audit3.c index d00db9972b..0602aa25db 100644 --- a/sysdeps/x86_64/tst-audit3.c +++ b/sysdeps/x86_64/tst-audit3.c @@ -7,8 +7,8 @@ extern __m128i audit_test (__m128i, __m128i, __m128i, __m128i, __m128i, __m128i, __m128i, __m128i); -int -main (void) +static int +do_test (void) { __m128i xmm = _mm_setzero_si128 (); __m128i ret = audit_test (xmm, xmm, xmm, xmm, xmm, xmm, xmm, xmm); @@ -18,3 +18,6 @@ main (void) return 0; } + +#define TEST_FUNCTION do_test () +#include "../../test-skeleton.c" diff --git a/sysdeps/x86_64/tst-audit4.c b/sysdeps/x86_64/tst-audit4.c index c4f1d5bdb9..44d51231e3 100644 --- a/sysdeps/x86_64/tst-audit4.c +++ b/sysdeps/x86_64/tst-audit4.c @@ -25,8 +25,8 @@ avx_enabled (void) extern __m256i audit_test (__m256i, __m256i, __m256i, __m256i, __m256i, __m256i, __m256i, __m256i); -int -main (void) +static int +do_test (void) { /* Run AVX test only if AVX is supported. */ if (avx_enabled ()) @@ -41,9 +41,12 @@ main (void) return 0; } #else -int -main (void) +static int +do_test (void) { return 0; } #endif + +#define TEST_FUNCTION do_test () +#include "../../test-skeleton.c" diff --git a/sysdeps/x86_64/tst-audit5.c b/sysdeps/x86_64/tst-audit5.c index 0094fee61f..225b4c86ac 100644 --- a/sysdeps/x86_64/tst-audit5.c +++ b/sysdeps/x86_64/tst-audit5.c @@ -7,8 +7,8 @@ extern __m128i audit_test (__m128i, __m128i, __m128i, __m128i, __m128i, __m128i, __m128i, __m128i); -int -main (void) +static int +do_test (void) { __m128i xmm = _mm_setzero_si128 (); __m128i ret = audit_test (xmm, xmm, xmm, xmm, xmm, xmm, xmm, xmm); @@ -19,3 +19,6 @@ main (void) return 0; } + +#define TEST_FUNCTION do_test () +#include "../../test-skeleton.c" |