From 050116183b0368ecc4daf8b73d13627de6a11824 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 23 Jan 2017 12:24:35 +0000 Subject: [PATCH] re PR testsuite/78421 (vect-strided-a-u8-i2-gap.c fails on armeb) PR testsuite/78421 * lib/target-supports.exp (check_effective_target_vect_hw_misalign): If the target is ARM return the result of the check_effective_target_arm_vect_no_misalign proc. * gcc.dg/vect/vect-strided-a-u8-i2-gap.c: If the target does not support unaligned vectors then only expect one of the loops to be unrolled. Co-Authored-By: Nick Clifton From-SVN: r244796 --- gcc/testsuite/ChangeLog | 11 +++++++++++ gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i2-gap.c | 3 ++- gcc/testsuite/lib/target-supports.exp | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0ebaae5..cafb058 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2017-01-23 Richard Biener + Nick Clifton + + PR testsuite/78421 + * lib/target-supports.exp (check_effective_target_vect_hw_misalign): + If the target is ARM return the result of the + check_effective_target_arm_vect_no_misalign proc. + * gcc.dg/vect/vect-strided-a-u8-i2-gap.c: If the target does not + support unaligned vectors then only expect one of the loops to be + unrolled. + 2017-01-23 Martin Liska * gcc.dg/asan/use-after-scope-10.c: New test. diff --git a/gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i2-gap.c b/gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i2-gap.c index 52fdcf6..0be7f8b 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i2-gap.c +++ b/gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i2-gap.c @@ -71,5 +71,6 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { target vect_strided2 } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_strided2 && { ! vect_hw_misalign } } } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { target { vect_strided2 && vect_hw_misalign } } } } */ diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index e1d6dcb..95a1c50 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5752,6 +5752,9 @@ proc check_effective_target_vect_hw_misalign { } { || ([istarget mips*-*-*] && [et-is-effective-target mips_msa]) } { set et_vect_hw_misalign_saved($et_index) 1 } + if { [istarget arm*-*-*] } { + set et_vect_hw_misalign_saved($et_index) [check_effective_target_arm_vect_no_misalign] + } } verbose "check_effective_target_vect_hw_misalign:\ returning $et_vect_hw_misalign_saved($et_index)" 2 -- 2.7.4