[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr72717.c
blobd9bea5a5636105ce581f6d23674cbdfdea7dfb14
1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-mdejagnu-cpu=power8 -mvsx -O2" } */
6 typedef long V __attribute__((__vector_size__(32)));
8 extern void foo (V *, V*);
10 /* This test generated an failure in emit_move_insn. */
12 void
13 foo(V *p, V *q)
15 V v = *q;
16 *p = v << v[0];
19 /* { dg-final { scan-assembler-times "vsld" 2 } } */