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/] [ssefn-2.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* Test argument passing with SSE2 and local functions
2
   Written by Paolo Bonzini, 25 January 2005 */
3
 
4
/* { dg-do compile } */
5
/* { dg-require-effective-target ilp32 } */
6
/* { dg-require-effective-target sse2 } */
7
/* { dg-final { scan-assembler "movss" } } */
8
/* { dg-final { scan-assembler "mulss" } } */
9
/* { dg-final { scan-assembler "movsd" } } */
10
/* { dg-final { scan-assembler "mulsd" } } */
11
/* { dg-options "-O2 -msse2 -mfpmath=sse -fno-inline" } */
12
 
13
static float xs (void)
14
{
15
  return 3.14159265;
16
}
17
 
18
float ys (float a)
19
{
20
  return xs () * a;
21
}
22
 
23
static double xd (void)
24
{
25
  return 3.1415926535;
26
}
27
 
28
double yd (double a)
29
{
30
  return xd () * a;
31
}
32
 

powered by: WebSVN 2.1.0

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