vect.exp: Skip PowerPC targets not supporting -maltivec.
* g++.dg/vect/vect.exp: Skip PowerPC targets not supporting -maltivec. * gcc.target/powerpc/altivec-20.c: Use powerpc_altivec_ok. From-SVN: r120401
This commit is contained in:
parent
d60ab19691
commit
096be98666
3 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-01-03 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* g++.dg/vect/vect.exp: Skip PowerPC targets not supporting
|
||||
-maltivec.
|
||||
* gcc.target/powerpc/altivec-20.c: Use powerpc_altivec_ok.
|
||||
|
||||
2007-01-03 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/30286
|
||||
|
|
|
@ -46,7 +46,10 @@ lappend DEFAULT_VECTCFLAGS "-O2" "-ftree-vectorize" \
|
|||
# code. Set additional target-dependent vector flags, which can be
|
||||
# overridden by using dg-options in individual tests.
|
||||
if [istarget "powerpc*-*-*"] {
|
||||
# If there are powerpc targets to skip, do it here.
|
||||
# Skip targets not supporting -maltivec.
|
||||
if ![is-effective-target powerpc_altivec_ok] {
|
||||
return
|
||||
}
|
||||
|
||||
lappend DEFAULT_VECTCFLAGS "-maltivec"
|
||||
if [check_vmx_hw_available] {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* { dg-do compile { target powerpc*-*-* } } */
|
||||
/* { dg-do compile { target powerpc_altivec_ok } } */
|
||||
/* { dg-options "-maltivec -mcpu=G5 -O2" } */
|
||||
|
||||
#include <altivec.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue