Add x86-64 <bits/siginfo.h>
[glibc.git] / elf / tst-auditmod4a.c
blobc9c24c04a82ed77c8536f0d1aef98597fafdd634
1 /* Test case for x86-64 preserved registers in dynamic linker. */
3 #ifdef __AVX__
4 #include <stdlib.h>
5 #include <string.h>
6 #include <immintrin.h>
8 __m256i
9 audit_test (__m256i x0, __m256i x1, __m256i x2, __m256i x3,
10 __m256i x4, __m256i x5, __m256i x6, __m256i x7)
12 __m256i ymm;
14 ymm = _mm256_set1_epi32 (1);
15 if (memcmp (&ymm, &x0, sizeof (ymm)))
16 abort ();
18 ymm = _mm256_set1_epi32 (2);
19 if (memcmp (&ymm, &x1, sizeof (ymm)))
20 abort ();
22 ymm = _mm256_set1_epi32 (3);
23 if (memcmp (&ymm, &x2, sizeof (ymm)))
24 abort ();
26 ymm = _mm256_set1_epi32 (4);
27 if (memcmp (&ymm, &x3, sizeof (ymm)))
28 abort ();
30 ymm = _mm256_set1_epi32 (5);
31 if (memcmp (&ymm, &x4, sizeof (ymm)))
32 abort ();
34 ymm = _mm256_set1_epi32 (6);
35 if (memcmp (&ymm, &x5, sizeof (ymm)))
36 abort ();
38 ymm = _mm256_set1_epi32 (7);
39 if (memcmp (&ymm, &x6, sizeof (ymm)))
40 abort ();
42 ymm = _mm256_set1_epi32 (8);
43 if (memcmp (&ymm, &x7, sizeof (ymm)))
44 abort ();
46 return _mm256_setzero_si256 ();
48 #endif