Remove outermost loop parameter.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / sse-movhps-1.c
blob9f28927a881165a8c58439365dfd94fc43cadd04
1 /* { dg-do run } */
2 /* { dg-options "-O2 -msse" } */
4 #ifndef CHECK_H
5 #define CHECK_H "sse-check.h"
6 #endif
8 #ifndef TEST
9 #define TEST sse_test
10 #endif
12 #include CHECK_H
14 #include <xmmintrin.h>
16 static __m128
17 __attribute__((noinline, unused))
18 test (__m128 a, __m64 *p)
20 return _mm_loadh_pi (a, p);
23 static void
24 TEST (void)
26 union128 u, s1;
27 float d[2] = {24.43, 68.346};
28 float e[4] = {1.17, 2.16, 3.15, 4.14};
30 s1.x = _mm_set_ps (5.13, 6.12, 7.11, 8.9);
31 u.x = _mm_loadu_ps (e);
33 u.x = test (s1.x, (__m64 *)d);
35 e[0] = s1.a[0];
36 e[1] = s1.a[1];
37 e[2] = d[0];
38 e[3] = d[1];
40 if (check_union128 (u, e))
41 abort ();