Commit 1126bfdd by Janis Johnson Committed by 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.

From-SVN: r92467
parent eeea13c2
2004-12-21 Janis Johnson <janis187@us.ibm.com> 2004-12-21 Janis Johnson <janis187@us.ibm.com>
* 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 * lib/target-supports.exp
(check_effective_target_vect_no_max, (check_effective_target_vect_no_max,
check_effective_target_vect_no_bitwise, check_effective_target_vect_no_bitwise,
......
...@@ -39,6 +39,4 @@ int main (void) ...@@ -39,6 +39,4 @@ int main (void)
return 0; return 0;
} }
/* These are not yet vectorized on targets that do not model alignment-handling /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail lp64_or_vect_no_align } } } */
mechanisms. */
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail i?86-*-* x86_64-*-* sparc*-*-* alpha*-*-* } } } */
...@@ -40,4 +40,4 @@ int main (void) ...@@ -40,4 +40,4 @@ int main (void)
return 0; 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 } } } */
...@@ -69,6 +69,19 @@ if [istarget "powerpc*-*-*"] { ...@@ -69,6 +69,19 @@ if [istarget "powerpc*-*-*"] {
return 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'. # Initialize `dg'.
dg-init dg-init
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment