OSDN Git Service

[gcc/testsuite/ChangeLog]
authorzlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 May 2004 23:08:58 +0000 (23:08 +0000)
committerzlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 May 2004 23:08:58 +0000 (23:08 +0000)
2004-05-28  Ziemowit Laski  <zlaski@apple.com>

        * gcc.dg/altivec-16.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82396 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/altivec-16.c [new file with mode: 0644]

index 8c3e963..c420121 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-28  Ziemowit Laski  <zlaski@apple.com>
+
+       * gcc.dg/altivec-16.c: New test.
+
 2004-05-28  Janis Johnson  <janis187@us.ibm.com>
 
        * lib/target-supports.exp (check_vmx_hw_available): New.
diff --git a/gcc/testsuite/gcc.dg/altivec-16.c b/gcc/testsuite/gcc.dg/altivec-16.c
new file mode 100644 (file)
index 0000000..fcfaeb9
--- /dev/null
@@ -0,0 +1,19 @@
+/* This is a compile-only test for interaction of "-maltivec" and "-save-temps".  */
+/* Author:  Ziemowit Laski  <zlaski@apple.com>.  */
+/* { dg-do compile { target powerpc*-*-* } } */
+/* { dg-options "-save-temps -maltivec" } */
+
+#include <altivec.h>
+
+#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 };