aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/altivec-5.c
blob: 61d19d9cd9b7400a996aa59a9d09e7ef8492a828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile { target powerpc-*-* } } */
/* { dg-options "-maltivec -O2" } */

#define vector __attribute__((vector_size(16)))

void foo (const unsigned long x,
	  vector signed int a, vector signed int b)
{
  unsigned char d[64];

  __builtin_altivec_stvewx (b, 0, d);
}