(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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92467
138bc75d-0d04-0410-961f-
82ee72b054a4
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
(check_effective_target_vect_no_max,
check_effective_target_vect_no_bitwise,
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 } } } */
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 } } } */
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