Warning: That file was not part of the compilation database. It may have many parsing errors.

1/* Test case for x86-64 preserved registers in dynamic linker. */
2
3#ifdef __AVX__
4#include <stdlib.h>
5#include <string.h>
6#include <immintrin.h>
7
8__m256i
9audit_test (__m256i x0, __m256i x1, __m256i x2, __m256i x3,
10 __m256i x4, __m256i x5, __m256i x6, __m256i x7)
11{
12 __m256i ymm;
13
14 ymm = _mm256_set1_epi32 (1);
15 if (memcmp (&ymm, &x0, sizeof (ymm)))
16 abort ();
17
18 ymm = _mm256_set1_epi32 (2);
19 if (memcmp (&ymm, &x1, sizeof (ymm)))
20 abort ();
21
22 ymm = _mm256_set1_epi32 (3);
23 if (memcmp (&ymm, &x2, sizeof (ymm)))
24 abort ();
25
26 ymm = _mm256_set1_epi32 (4);
27 if (memcmp (&ymm, &x3, sizeof (ymm)))
28 abort ();
29
30 ymm = _mm256_set1_epi32 (5);
31 if (memcmp (&ymm, &x4, sizeof (ymm)))
32 abort ();
33
34 ymm = _mm256_set1_epi32 (6);
35 if (memcmp (&ymm, &x5, sizeof (ymm)))
36 abort ();
37
38 ymm = _mm256_set1_epi32 (7);
39 if (memcmp (&ymm, &x6, sizeof (ymm)))
40 abort ();
41
42 ymm = _mm256_set1_epi32 (8);
43 if (memcmp (&ymm, &x7, sizeof (ymm)))
44 abort ();
45
46 return _mm256_setzero_si256 ();
47}
48#endif
49

Warning: That file was not part of the compilation database. It may have many parsing errors.