Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / sse-movhps-2.c
blobb961849d2edcaa10ef7e23c390828cf5b5587914
1 /* { dg-do run } */
2 /* { dg-options "-O3 -mpower8-vector" } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-require-effective-target p8vector_hw } */
6 #define NO_WARN_X86_INTRINSICS 1
8 #ifndef CHECK_H
9 #define CHECK_H "sse-check.h"
10 #endif
12 #include CHECK_H
14 #ifndef TEST
15 #define TEST sse_test_movhps_2
16 #endif
18 #include <xmmintrin.h>
20 static void
21 __attribute__((noinline, unused))
22 test (__m64 *p, __m128 a)
24 __asm("" : "+v"(a));
25 return _mm_storeh_pi (p, a);
28 static void
29 TEST (void)
31 union128 s1;
32 float e[2];
33 float d[2];
35 s1.x = _mm_set_ps (5.13, 6.12, 7.11, 8.9);
37 test ((__m64 *)d, s1.x);
39 e[0] = s1.a[2];
40 e[1] = s1.a[3];
42 if (checkVf (d, e, 2))
43 abort ();