summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vmx/mem.c
blob: a26eb3cfc655381a5ad1f189a9bcb0a5df1ecaf0 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
#include <altivec.h>
void
f(vector unsigned char *a, vector unsigned char *b, vector unsigned char *c)
{
  int i;
  for (i = 0; i < 16; i++)
    c[i] = vec_add(a[i], b[i]);
}