From: Janis Johnson Date: Thu, 12 Aug 2004 21:28:12 +0000 (+0000) Subject: altivec-12.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=950a175b04eda2cdcea01a61a3c4a09a23b6d2c6;p=gcc.git altivec-12.C: New test. 2004-08-12 Janis Johnson * g++.dg/ext/altivec-12.C: New test. From-SVN: r85907 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 10e9e0b10e4..0233a794702 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 2004-08-12 Janis Johnson + * g++.dg/ext/altivec-12.C: New test. + * g++.dg/ext/altivec-11.C: New test. 2004-08-12 Paul Brook diff --git a/gcc/testsuite/g++.dg/ext/altivec-12.C b/gcc/testsuite/g++.dg/ext/altivec-12.C new file mode 100644 index 00000000000..a52b7d22e17 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/altivec-12.C @@ -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 + +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); +}