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-1.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* Test argument passing with SSE 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 sse } */
7
/* { dg-final { scan-assembler "movss" } } */
8
/* { dg-final { scan-assembler "mulss" } } */
9
/* { dg-final { scan-assembler-not "movsd" } } */
10
/* { dg-final { scan-assembler-not "mulsd" } } */
11
/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i386" } } */
12
/* { dg-options "-O2 -march=i386 -msse -mfpmath=sse -fno-inline" } */
13
 
14
static float xs (void)
15
{
16
  return 3.14159265;
17
}
18
 
19
float ys (float a)
20
{
21
  return xs () * a;
22
}
23
 
24
static double xd (void)
25
{
26
  return 3.1415926535;
27
}
28
 
29
double yd (double a)
30
{
31
  return xd () * a;
32
}

powered by: WebSVN 2.1.0

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