[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / darn-0.c
blobca339a1cebad7e4dc15298cf760599441c915105
1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-skip-if "" { powerpc*-*-aix* } } */
4 /* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */
6 /* This test should succeed on both 32- and 64-bit configurations. */
7 #include <altivec.h>
9 int get_random ()
11 return __builtin_darn_32 ();
14 /* { dg-final { scan-assembler "darn" } } */