]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
vect.exp: Skip PowerPC targets not supporting -maltivec.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 30 Nov 2006 00:12:49 +0000 (00:12 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 30 Nov 2006 00:12:49 +0000 (00:12 +0000)
* gcc.dg/vect/vect.exp: Skip PowerPC targets not supporting
-maltivec.

From-SVN: r119338

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect.exp

index 6ba02856ad96e900f0813e503db17d96c61db3b4..e14723735aea56b14444f3b15c0746f3f3adaf28 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-30  Joseph Myers  <joseph@codesourcery.com>
+
+       * gcc.dg/vect/vect.exp: Skip PowerPC targets not supporting
+       -maltivec.
+
 2006-11-29  Eric Christopher  <echristo@apple.com>
 
        * gcc.dg/tree-ssa/prefetch-3.c: Allow x86_64, but require ilp32.
index 001c97ad61d29044a2c87f9a321c9dadfba718c6..49b3d8d4a2869bbacacbced0b8773cfe6bf24077 100644 (file)
@@ -37,7 +37,10 @@ set save-dg-do-what-default ${dg-do-what-default}
 # 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] {