Blame sysdeps/x86_64/tst-audit5.c
|
Packit Service |
82fcde |
/* Test case for x86-64 preserved registers in dynamic linker. */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <stdlib.h>
|
|
Packit Service |
82fcde |
#include <string.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <emmintrin.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
extern __m128i audit_test (__m128i, __m128i, __m128i, __m128i,
|
|
Packit Service |
82fcde |
__m128i, __m128i, __m128i, __m128i);
|
|
Packit Service |
82fcde |
static int
|
|
Packit Service |
82fcde |
do_test (void)
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
__m128i xmm = _mm_setzero_si128 ();
|
|
Packit Service |
82fcde |
__m128i ret = audit_test (xmm, xmm, xmm, xmm, xmm, xmm, xmm, xmm);
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
xmm = _mm_set1_epi32 (0x12349876);
|
|
Packit Service |
82fcde |
if (memcmp (&xmm, &ret, sizeof (ret)))
|
|
Packit Service |
82fcde |
abort ();
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
return 0;
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#define TEST_FUNCTION do_test ()
|
|
Packit Service |
82fcde |
#include "../../test-skeleton.c"
|