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] - Rev 318

Compare with Previous | Blame | View Log

/* Test argument passing with SSE2 and local functions
   Written by Paolo Bonzini, 25 January 2005 */
 
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target sse2 } */
/* { dg-final { scan-assembler "movss" } } */
/* { dg-final { scan-assembler "mulss" } } */
/* { dg-final { scan-assembler "movsd" } } */
/* { dg-final { scan-assembler "mulsd" } } */
/* { dg-options "-O2 -msse2 -mfpmath=sse -fno-inline" } */
 
static float xs (void)
{
  return 3.14159265;
}
 
float ys (float a)
{
  return xs () * a;
}
 
static double xd (void)
{
  return 3.1415926535;
}
 
double yd (double a)
{
  return xd () * a;
}
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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