1 2 3 4 5 6 7 8 9 10 11 12 13
/* { dg-do compile } */ /* { dg-options "-maltivec" } */ /* { dg-require-effective-target powerpc_altivec } */ /* Compile-only test to ensure that expressions can be passed to Altivec builtins without error. */ #include <altivec.h> void func(unsigned char *buf, unsigned len) { vec_dst(buf, (len >= 256 ? 0 : len) | 512, 2); }