summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/altivec-12.C
blob: 6f21da961b28bbaeb8354cbd1e0339a5510914fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Test vec_dst* functions with float pointer as first argument.  */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */

#include <altivec.h>

extern int i;
extern float *fp;
extern vector float vf;

void
foo ()
{
  vec_dst (fp, i, 1);
  vec_dstst (fp, i, 1);
  vec_dststt (fp, i, 1);
  vec_dstt (fp, i, 1);
}