From: Janis Johnson Date: Tue, 21 Dec 2004 18:05:36 +0000 (+0000) Subject: * gcc.dg/vect/vect.exp X-Git-Tag: releases/gcc-4.0.0~2014 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=1126bfdd6b9e34210cde355f19662ed070f9a6ad;p=gcc.git * gcc.dg/vect/vect.exp (check_effective_target_lp64_or_vect_no_align): New. * gcc.dg/vect/vect-77.c: Use it. * gcc.dg/vect/vect-78.c: Use it. From-SVN: r92467 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b1f391f27ee6..799c339fac8b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2004-12-21 Janis Johnson + * gcc.dg/vect/vect.exp + (check_effective_target_lp64_or_vect_no_align): New. + * gcc.dg/vect/vect-77.c: Use it. + * gcc.dg/vect/vect-78.c: Use it. + * lib/target-supports.exp (check_effective_target_vect_no_max, check_effective_target_vect_no_bitwise, diff --git a/gcc/testsuite/gcc.dg/vect/vect-77.c b/gcc/testsuite/gcc.dg/vect/vect-77.c index a49a284348e6..1cbdf8f78d45 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-77.c +++ b/gcc/testsuite/gcc.dg/vect/vect-77.c @@ -39,6 +39,4 @@ int main (void) return 0; } -/* These are not yet vectorized on targets that do not model alignment-handling - mechanisms. */ -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail i?86-*-* x86_64-*-* sparc*-*-* alpha*-*-* } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail lp64_or_vect_no_align } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-78.c b/gcc/testsuite/gcc.dg/vect/vect-78.c index 3a0bb3885bf1..5768b602f908 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-78.c +++ b/gcc/testsuite/gcc.dg/vect/vect-78.c @@ -40,4 +40,4 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail i?86-*-* x86_64-*-* sparc*-*-* alpha*-*-* } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail lp64_or_vect_no_align } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect.exp b/gcc/testsuite/gcc.dg/vect/vect.exp index a3aa89ae5c3c..14e459783a9c 100644 --- a/gcc/testsuite/gcc.dg/vect/vect.exp +++ b/gcc/testsuite/gcc.dg/vect/vect.exp @@ -69,6 +69,19 @@ if [istarget "powerpc*-*-*"] { return } +# Return 1 if the effective target is LP64 or if the effective target +# does not support a vector alignment mechanism. + +proc check_effective_target_lp64_or_vect_no_align { } { + if { [is-effective-target lp64] + || [is-effective-target vect_no_align] } { + set answer 1 + } else { + set answer 0 + } + return $answer +} + # Initialize `dg'. dg-init