OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [no-scevccp-vect-iv-3.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-require-effective-target vect_int } */
3
 
4
#include <stdarg.h>
5
#include "tree-vect.h"
6
 
7
#define N 26
8
 
9
__attribute__ ((noinline))
10
unsigned int main1 ()
11
{
12
  unsigned short i;
13
  unsigned int intsum = 0;
14
 
15
  /* vectorization of reduction with induction, and widenning sum:
16
     sum shorts into int.
17
     Need -fno-tree-scev-cprop or else the loop is eliminated.  */
18
  for (i = 0; i < N; i++)
19
    {
20
      intsum += i;
21
    }
22
 
23
  return intsum;
24
}
25
 
26
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_widen_sum_hi_to_si } } } */
27
/* { dg-final { scan-tree-dump-times "vect_recog_widen_sum_pattern: detected" 1 "vect" { target vect_widen_sum_hi_to_si } } } */
28
/* { dg-final { cleanup-tree-dump "vect" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.