[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr47197.c
bloba8930f2a5c809fdf742a6e026c8c56c615d60faa
1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec" } */
5 /* Compile-only test to ensure that expressions can be passed to
6 Altivec builtins without error. */
8 #include <altivec.h>
10 void func(unsigned char *buf, unsigned len)
12 vec_dst(buf, (len >= 256 ? 0 : len) | 512, 2);