aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/pr47197.c
blob: 729dcfb364a129f95479918a4443406ec822b32a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { 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);
}