[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / sse2-movlpd-2.c
blobde178663340e24a0fa29f8c806430b789d1e8687
1 /* { dg-do run } */
2 /* { dg-options "-O3 -mpower8-vector -Wno-psabi" } */
3 /* { dg-require-effective-target p8vector_hw } */
5 #ifndef CHECK_H
6 #define CHECK_H "sse2-check.h"
7 #endif
9 #include CHECK_H
11 #ifndef TEST
12 #define TEST sse2_test_movlpd_2
13 #endif
15 #include <emmintrin.h>
17 static void
18 __attribute__((noinline, unused))
19 test (double *e, __m128d a)
21 __asm("" : "+v"(a), "+b"(e));
22 return _mm_storel_pd (e, a);
25 static void
26 TEST (void)
28 union128d u;
29 double e[2];
31 u.x = _mm_set_pd (41124.234,2344.2354);
33 test (e, u.x);
35 e[1] = u.a[1];
37 if (check_union128d (u, e))
38 abort ();