re PR testsuite/78421 (vect-strided-a-u8-i2-gap.c fails on armeb)
authorRichard Biener <rguenther@suse.de>
Mon, 23 Jan 2017 12:24:35 +0000 (12:24 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Mon, 23 Jan 2017 12:24:35 +0000 (12:24 +0000)
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 <nickc@redhat.com>
From-SVN: r244796

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i2-gap.c
gcc/testsuite/lib/target-supports.exp

index 0ebaae5035c59b6c76c0d16d64fb0a9625c3de4c..cafb05882c25ced77a5059d083f3663bec3a43a5 100644 (file)
@@ -1,3 +1,14 @@
+2017-01-23  Richard Biener  <rguenther@suse.de>
+           Nick Clifton  <nickc@redhat.com>
+
+       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  <mliska@suse.cz>
 
        * gcc.dg/asan/use-after-scope-10.c: New test.
index 52fdcf6ee7d1e9b1e4d8981ea12e72896482e4ca..0be7f8b9b783f170626b676545130b0daa1935a1 100644 (file)
@@ -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 } } } } */
   
index e1d6dcbf088c285a1c9e55ac67f23c37c5f451ad..95a1c500c28a0612835436787a55c51bb1866fea 100644 (file)
@@ -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