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-pr35982.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
/* { dg-require-effective-target vect_int } */
4
/* { dg-require-effective-target vect_intfloat_cvt } */
5
 
6
struct mem
7
{
8
  float avg;
9
  int len;
10
};
11
 
12
float method2_int16 (struct mem *mem)
13
{
14
  int i;
15
  float avg;
16
 
17
  for (i = 0; i < 100; ++i)
18
     avg += mem[i].avg * (float) mem[i].len;
19
 
20
  return avg;
21
}
22
 
23
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_extract_even_odd || vect_strided2 } } } } */
24
/* { dg-final { scan-tree-dump-times "vectorized 0 loops" 1 "vect" { xfail { vect_extract_even_odd || vect_strided2 } } } } */
25
/* { 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.