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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [recip-vec-sqrtf.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -ffast-math -ftree-vectorize -msse -mfpmath=sse -mrecip" } */
3
/* { dg-require-effective-target sse } */
4
 
5
float a[16];
6
float b[16];
7
float r[16];
8
 
9
extern float sqrtf (float);
10
 
11
void t1(void)
12
{
13
 int i;
14
 
15
 for (i = 0; i < 16; i++)
16
   r[i] = a[i] / sqrtf (b[i]);
17
}
18
 
19
void t2(void)
20
{
21
 int i;
22
 
23
 for (i = 0; i < 16; i++)
24
   r[i] = sqrtf (a[i] / b[i]);
25
}
26
 
27
void t3(void)
28
{
29
 int i;
30
 
31
 for (i = 0; i < 16; i++)
32
   r[i] = sqrtf (a[i]);
33
}
34
 
35
/* { dg-final { scan-assembler-times "rsqrtps" 3 } } */

powered by: WebSVN 2.1.0

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