altivec-12.C: New test.

2004-08-12  Janis Johnson  <janis187@us.ibm.com>

	* g++.dg/ext/altivec-12.C: New test.

From-SVN: r85907
This commit is contained in:
Janis Johnson 2004-08-12 21:28:12 +00:00 committed by Janis Johnson
parent e390eb0a14
commit 950a175b04
2 changed files with 21 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2004-08-12 Janis Johnson <janis1872us.ibm.com>
* g++.dg/ext/altivec-12.C: New test.
* g++.dg/ext/altivec-11.C: New test.
2004-08-12 Paul Brook <paul@codesourcery.com>

View File

@ -0,0 +1,19 @@
/* Test vec_dst* functions with float pointer as first argument. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
/* { 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);
}