From: Ziemowit Laski Date: Sat, 29 May 2004 01:50:59 +0000 (+0000) Subject: altivec-10.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b63e5497f3a01e91c526e52550da7c907737792b;p=gcc.git altivec-10.C: New test. [gcc/testsuite/ChangeLog] 2004-05-28 Ziemowit Laski * g++.dg/ext/altivec-10.C: New test. From-SVN: r82413 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 96b7c937765..ed4955f7fe5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-05-28 Ziemowit Laski + + * g++.dg/ext/altivec-10.C: New test. + 2004-05-29 Paul Brook * gfortran.fortran-torture/execute/equiv_1.f90: New test. diff --git a/gcc/testsuite/g++.dg/ext/altivec-10.C b/gcc/testsuite/g++.dg/ext/altivec-10.C new file mode 100644 index 00000000000..fcfaeb983a3 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/altivec-10.C @@ -0,0 +1,19 @@ +/* This is a compile-only test for interaction of "-maltivec" and "-save-temps". */ +/* Author: Ziemowit Laski . */ +/* { dg-do compile { target powerpc*-*-* } } */ +/* { dg-options "-save-temps -maltivec" } */ + +#include + +#define vector_float vector float +#define vector_float_foo vector float foo +#define vector_float_bar_eq vector float bar = + +/* NB: Keep the following split across three lines. */ +vector +int +a1 = { 100, 200, 300, 400 }; + +vector_float f1 = { 1.0, 2.0, 3.0, 4.0 }; +vector_float_foo = { 3.0, 4.0, 5.0, 6.0 }; +vector_float_bar_eq { 8.0, 7.0, 6.0, 5.0 };