Fix handling of missing syscall in Linux mkdirat.
[glibc.git] / elf / tst-audit4.c
blobb17d4a61a792173090214156c8f8aad3486a9697
1 /* Test case for x86-64 preserved registers in dynamic linker. */
3 #ifdef __AVX__
4 #include <stdlib.h>
5 #include <string.h>
6 #include <cpuid.h>
7 #include <immintrin.h>
9 extern __m256i audit_test (__m256i, __m256i, __m256i, __m256i,
10 __m256i, __m256i, __m256i, __m256i);
11 int
12 main (void)
14 unsigned int eax, ebx, ecx, edx;
16 /* Run AVX test only if AVX is supported. */
17 if (__get_cpuid (1, &eax, &ebx, &ecx, &edx)
18 && (ecx & bit_AVX))
20 __m256i ymm = _mm256_setzero_si256 ();
21 __m256i ret = audit_test (ymm, ymm, ymm, ymm, ymm, ymm, ymm, ymm);
23 ymm = _mm256_set1_epi32 (0x12349876);
24 if (memcmp (&ymm, &ret, sizeof (ret)))
25 abort ();
27 return 0;
29 #else
30 int
31 main (void)
33 return 0;
35 #endif