blob: a8930f2a5c809fdf742a6e026c8c56c615d60faa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
/* 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);
}
|