From daca85ca4f36a704ad0490ed9f71cb3eee6e0cb0 Mon Sep 17 00:00:00 2001 From: Ziemowit Laski Date: Tue, 11 May 2004 21:47:35 +0000 Subject: [PATCH] altivec-8.C: Use '-maltivec' instead of '-faltivec'; include explicitly. 2004-05-11 Ziemowit Laski * g++.dg/ext/altivec-8.C: Use '-maltivec' instead of '-faltivec'; include explicitly. * gcc.dg/altivec-13.c: Likewise. From-SVN: r81719 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/ext/altivec-8.C | 8 ++++++-- 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 4df7b75d051..9d72267b592 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2004-05-11 Ziemowit Laski + + * g++.dg/ext/altivec-8.C: Use '-maltivec' instead of '-faltivec'; + include explicitly. + * gcc.dg/altivec-13.c: Likewise. + 2004-05-11 Paul Brook * 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 298e6100559..9f4892df860 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 */ /* 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 + +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 298e6100559..c377442196b 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 */ /* 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 + +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 ); -- 2.30.2