diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4df7b75d051bbd3ce333870ee740f9bc643e7b6a..9d72267b592ab7c28b4e127ddfff0a7d95a84118 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 298e6100559438d756d70f68ccb263abfd05d606..9f4892df860a647091a5972180fd25c0b209c5cd 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 298e6100559438d756d70f68ccb263abfd05d606..c377442196bde1c6a02e1e3f46e497834aa5e5ae 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 );