|
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 |
#include <emmintrin.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
__m128i
|
|
Packit Service |
82fcde |
audit_test (__m128i x0, __m128i x1, __m128i x2, __m128i x3,
|
|
Packit Service |
82fcde |
__m128i x4, __m128i x5, __m128i x6, __m128i x7)
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
__m128i xmm;
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
xmm = _mm_set1_epi32 (0x100);
|
|
Packit Service |
82fcde |
if (memcmp (&xmm, &x0, sizeof (xmm)))
|
|
Packit Service |
82fcde |
abort ();
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
xmm = _mm_set1_epi32 (0x101);
|
|
Packit Service |
82fcde |
if (memcmp (&xmm, &x1, sizeof (xmm)))
|
|
Packit Service |
82fcde |
abort ();
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
xmm = _mm_set1_epi32 (0x102);
|
|
Packit Service |
82fcde |
if (memcmp (&xmm, &x2, sizeof (xmm)))
|
|
Packit Service |
82fcde |
abort ();
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
xmm = _mm_set1_epi32 (0x103);
|
|
Packit Service |
82fcde |
if (memcmp (&xmm, &x3, sizeof (xmm)))
|
|
Packit Service |
82fcde |
abort ();
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
xmm = _mm_set1_epi32 (0x104);
|
|
Packit Service |
82fcde |
if (memcmp (&xmm, &x4, sizeof (xmm)))
|
|
Packit Service |
82fcde |
abort ();
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
xmm = _mm_set1_epi32 (0x105);
|
|
Packit Service |
82fcde |
if (memcmp (&xmm, &x5, sizeof (xmm)))
|
|
Packit Service |
82fcde |
abort ();
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
xmm = _mm_set1_epi32 (0x106);
|
|
Packit Service |
82fcde |
if (memcmp (&xmm, &x6, sizeof (xmm)))
|
|
Packit Service |
82fcde |
abort ();
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
xmm = _mm_set1_epi32 (0x107);
|
|
Packit Service |
82fcde |
if (memcmp (&xmm, &x7, sizeof (xmm)))
|
|
Packit Service |
82fcde |
abort ();
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
return _mm_setzero_si128 ();
|
|
Packit Service |
82fcde |
}
|