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/] [pr39058.c] - Rev 318

Compare with Previous | Blame | View Log

/* PR inline-asm/39058 */
/* { dg-options "-O2" } */
 
double
f1 ()
{
  double x;
  asm ("" : "=r,r" (x) : "0,0" (x));
  return x;
}
 
double
f2 ()
{
  double x;
  asm ("" : "=r" (x) : "0" (x));
  return x;
}
 
double
f3 ()
{
  double x, y;
  asm ("" : "=r,r" (x), "=r,r" (y) : "%0,0" (x), "r,r" (0));
  return x;
}
 
double
f4 ()
{
  double x, y;
  asm ("" : "=r" (x), "=r" (y) : "0" (x), "r" (0));
  return x;
}
 

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.