aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZiemowit Laski <zlaski@apple.com>2004-05-11 21:47:35 +0000
committerZiemowit Laski <zlaski@gcc.gnu.org>2004-05-11 21:47:35 +0000
commitdaca85ca4f36a704ad0490ed9f71cb3eee6e0cb0 (patch)
tree72e96015807b223e4450ed39c81f07c57c6906d7
parentbed7b8f18dd74f7173c06fc1ed202db204e67913 (diff)
downloadgcc-daca85ca4f36a704ad0490ed9f71cb3eee6e0cb0.zip
gcc-daca85ca4f36a704ad0490ed9f71cb3eee6e0cb0.tar.gz
gcc-daca85ca4f36a704ad0490ed9f71cb3eee6e0cb0.tar.bz2
altivec-8.C: Use '-maltivec' instead of '-faltivec'; include <altivec.h> explicitly.
2004-05-11 Ziemowit Laski <zlaski@apple.com> * g++.dg/ext/altivec-8.C: Use '-maltivec' instead of '-faltivec'; include <altivec.h> explicitly. * gcc.dg/altivec-13.c: Likewise. From-SVN: r81719
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/ext/altivec-8.C8
-rw-r--r--gcc/testsuite/gcc.dg/altivec-13.c8
3 files changed, 18 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4df7b75..9d72267 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2004-05-11 Ziemowit Laski <zlaski@apple.com>
+
+ * g++.dg/ext/altivec-8.C: Use '-maltivec' instead of '-faltivec';
+ include <altivec.h> explicitly.
+ * gcc.dg/altivec-13.c: Likewise.
+
2004-05-11 Paul Brook <paul@codesourcery.com>
* gcc.c-torture/compile/20010518-1.c: Force enum size.
diff --git a/gcc/testsuite/g++.dg/ext/altivec-8.C b/gcc/testsuite/g++.dg/ext/altivec-8.C
index 298e610..9f4892d 100644
--- a/gcc/testsuite/g++.dg/ext/altivec-8.C
+++ b/gcc/testsuite/g++.dg/ext/altivec-8.C
@@ -1,15 +1,19 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-options "-faltivec" } */
+/* { dg-options "-maltivec" } */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* This test case exercises intrinsic/argument combinations that,
while not in the Motorola AltiVec PIM, have nevertheless crept
into the AltiVec vernacular over the years. */
-void foo() {
+#include <altivec.h>
+
+void foo (void)
+{
vector bool int boolVec1 = (vector bool int) vec_splat_u32(3);
vector bool short boolVec2 = (vector bool short) vec_splat_u16(3);
vector bool char boolVec3 = (vector bool char) vec_splat_u8(3);
+
boolVec1 = vec_sld( boolVec1, boolVec1, 4 );
boolVec2 = vec_sld( boolVec2, boolVec2, 2 );
boolVec3 = vec_sld( boolVec3, boolVec3, 1 );
diff --git a/gcc/testsuite/gcc.dg/altivec-13.c b/gcc/testsuite/gcc.dg/altivec-13.c
index 298e610..c377442 100644
--- a/gcc/testsuite/gcc.dg/altivec-13.c
+++ b/gcc/testsuite/gcc.dg/altivec-13.c
@@ -1,15 +1,19 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-options "-faltivec" } */
+/* { dg-options "-maltivec" } */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* This test case exercises intrinsic/argument combinations that,
while not in the Motorola AltiVec PIM, have nevertheless crept
into the AltiVec vernacular over the years. */
-void foo() {
+#include <altivec.h>
+
+void foo (void)
+{
vector bool int boolVec1 = (vector bool int) vec_splat_u32(3);
vector bool short boolVec2 = (vector bool short) vec_splat_u16(3);
vector bool char boolVec3 = (vector bool char) vec_splat_u8(3);
+
boolVec1 = vec_sld( boolVec1, boolVec1, 4 );
boolVec2 = vec_sld( boolVec2, boolVec2, 2 );
boolVec3 = vec_sld( boolVec3, boolVec3, 1 );