1 /* Test case for x86-64 preserved registers in dynamic linker.  */
2 
3 #include <stdlib.h>
4 #include <string.h>
5 
6 #include <emmintrin.h>
7 
8 extern __m128i audit_test (__m128i, __m128i, __m128i, __m128i,
9 			   __m128i, __m128i, __m128i, __m128i);
10 static int
do_test(void)11 do_test (void)
12 {
13   __m128i xmm = _mm_setzero_si128 ();
14   __m128i ret = audit_test (xmm, xmm, xmm, xmm, xmm, xmm, xmm, xmm);
15 
16   xmm = _mm_set1_epi32 (0x12349876);
17   if (memcmp (&xmm, &ret, sizeof (ret)))
18     abort ();
19 
20   return 0;
21 }
22 
23 #define TEST_FUNCTION do_test ()
24 #include "../../test-skeleton.c"
25