From 8953b0aeede946f7e7ba900329713df51ee58167 Mon Sep 17 00:00:00 2001 From: Dominique d'Humieres Date: Sun, 18 Sep 2011 13:41:43 +0200 Subject: [PATCH] re PR testsuite/50435 (FAIL: gcc.dg/vect/bb-slp-25.c (-flto)? scan-tree-dump-times slp "basic block vectorized using SLP" 1) PR testsuite/50435 * gcc.dg/vect/bb-slp-25.c: Add an if to avoid loop vectorization. Fix underscores around restrict. Co-Authored-By: Ira Rosen From-SVN: r178942 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.dg/vect/bb-slp-25.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0a6fa97a3f8..8fd796de812 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2011-09-18 Dominique d'Humieres + Ira Rosen + + PR testsuite/50435 + * gcc.dg/vect/bb-slp-25.c: Add an if to avoid loop vectorization. + Fix underscores around restrict. + 2011-09-18 Ira Rosen PR tree-optimization/50414 diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-25.c b/gcc/testsuite/gcc.dg/vect/bb-slp-25.c index 6834960b545..193ab9d4db3 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-25.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-25.c @@ -9,7 +9,7 @@ short src[N], dst[N]; -void foo (short * __restrict dst, short * __restrict src, int h, int stride) +void foo (short * __restrict__ dst, short * __restrict__ src, int h, int stride, int dummy) { int i; h /= 16; @@ -25,6 +25,8 @@ void foo (short * __restrict dst, short * __restrict src, int h, int stride) dst[7] += A*src[7] + src[7+stride]; dst += 8; src += 8; + if (dummy == 32) + abort (); } } @@ -41,7 +43,7 @@ int main (void) src[i] = i; } - foo (dst, src, N, 8); + foo (dst, src, N, 8, 0); for (i = 0; i < N/2; i++) { -- 2.30.2