diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/altivec-8.C | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/altivec-13.c | 8 |
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 ); |