[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / sse2-movlpd-2.c
blob9d82a913d425083a203ea7b310d533e4b07401bb
1 /* { dg-do run } */
2 /* { dg-options "-O3 -mvsx -Wno-psabi" } */
3 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
4 /* { dg-require-effective-target p8vector_hw } */
6 #ifndef CHECK_H
7 #define CHECK_H "sse2-check.h"
8 #endif
10 #include CHECK_H
12 #ifndef TEST
13 #define TEST sse2_test_movlpd_2
14 #endif
16 #include <emmintrin.h>
18 static void
19 __attribute__((noinline, unused))
20 test (double *e, __m128d a)
22 __asm("" : "+v"(a), "+b"(e));
23 return _mm_storel_pd (e, a);
26 static void
27 TEST (void)
29 union128d u;
30 double e[2];
32 u.x = _mm_set_pd (41124.234,2344.2354);
34 test (e, u.x);
36 e[1] = u.a[1];
38 if (check_union128d (u, e))
39 abort ();