Update Italian translation.
[glibc.git] / elf / tst-audit6.c
blob1f6dcb16e9a529397d18cf334ad375ca2ec9c4c5
1 /* Test case for x86-64 preserved registers in dynamic linker. */
3 #include <stdlib.h>
4 #include <string.h>
5 #include <cpuid.h>
6 #include <emmintrin.h>
8 extern __m128i audit_test (__m128i, __m128i, __m128i, __m128i,
9 __m128i, __m128i, __m128i, __m128i);
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 __m128i xmm = _mm_setzero_si128 ();
21 __m128i ret = audit_test (xmm, xmm, xmm, xmm, xmm, xmm, xmm, xmm);
23 xmm = _mm_set1_epi32 (0x98abcdef);
24 if (memcmp (&xmm, &ret, sizeof (ret)))
25 abort ();
27 return 0;