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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [vectorize3.c] - Blame information for rev 848

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-require-effective-target ilp32 } */
3
/* { dg-options "-O2 -ffast-math -ftree-vectorize -msse2 -mfpmath=sse" } */
4
 
5
float a[256];
6
int b[256];
7
unsigned short c[256];
8
 
9
extern long lrintf (float);
10
 
11
void foo(void)
12
{
13
  int i;
14
 
15
  for (i=0; i<256; ++i)
16
    b[i] = lrintf (a[i]);
17
}
18
 
19
void bar(void)
20
{
21
  int i;
22
 
23
  for (i=0; i<256; ++i)
24
    {
25
      b[i] = lrintf (a[i]);
26
      c[i] += c[i];
27
    }
28
}
29
 
30
/* { dg-final { scan-assembler "cvtps2dq" } } */

powered by: WebSVN 2.1.0

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