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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [fast-math-vect-outer-7.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_float } */
3
 
4
float dvec[256];
5
 
6
void test1 (float x)
7
{
8
  long i, j;
9
  for (i = 0; i < 256; ++i)
10
    for (j = 0; j < 131072; ++j)
11
      dvec[i] *= x;
12
}
13
 
14
void test2 (float x)
15
{
16
  long i, j;
17
  for (i = 0; i < 256; ++i)
18
    for (j = 0; j < 131072; ++j)
19
      dvec[i] *= 1.001f;
20
}
21
 
22
/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 2 "vect" } } */
23
/* { 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.