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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [costmodel/] [i386/] [costmodel-vect-33.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 16
8
struct test {
9
  char ca[N];
10
};
11
 
12
extern struct test s;
13
 
14
__attribute__ ((noinline))
15
int main1 ()
16
{
17
  int i;
18
 
19
  for (i = 0; i < N; i++)
20
    {
21
      s.ca[i] = 5;
22
    }
23
 
24
  /* check results:  */
25
  for (i = 0; i < N; i++)
26
    {
27
      if (s.ca[i] != 5)
28
        abort ();
29
    }
30
 
31
  return 0;
32
}
33
 
34
int main (void)
35
{
36
  return main1 ();
37
}
38
 
39
/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" } } */
40
/* { 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.