[PATCH] [PR/31615] fix for testsuite failure in gfortran.dg/vect/vect-5.f90 on sparc
Dorit Nuzman
DORIT@il.ibm.com
Wed Apr 25 21:16:00 GMT 2007
Will commit this as obvious - the expectation to see this printed three
times:
"Alignment of access forced using versioning."
is probably a typo, cause there are only two data references in the only
loop that gets vectorized here, so we can version to align only two
accesses.
Tested on i386-linux and powerpc-linux, but this patch does not affect
these targets.
Tested by Kaveh on sparc.
To be committed to mainline as obvious,
dorit
ChangeLog:
* gfortran.dg/vect/vect-5.f90: Fix dg-final test.
Index: gfortran.dg/vect/vect-5.f90
===================================================================
*** gfortran.dg/vect/vect-5.f90 (revision 124158)
--- gfortran.dg/vect/vect-5.f90 (working copy)
***************
*** 38,44 ****
! { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } }
! { dg-final { scan-tree-dump-times "Alignment of access forced using
peeling" 1 "vect" { xfail { vect_no_align } } } }
! { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1
"vect" { xfail { vect_no_align } } } }
! ! { dg-final { scan-tree-dump-times "Alignment of access forced using
versioning." 3 "vect" { target { ilp32 && vect_no_align } } } }
! We also expect to vectorize one loop for lp64 targets that support
! misaligned access:
--- 38,44 ----
! { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } }
! { dg-final { scan-tree-dump-times "Alignment of access forced using
peeling" 1 "vect" { xfail { vect_no_align } } } }
! { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1
"vect" { xfail { vect_no_align } } } }
! ! { dg-final { scan-tree-dump-times "Alignment of access forced using
versioning." 2 "vect" { target { ilp32 && vect_no_align } } } }
! We also expect to vectorize one loop for lp64 targets that support
! misaligned access:
More information about the Gcc-patches
mailing list