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/] [mips/] [fpr-moves-7.c] - Rev 321

Compare with Previous | Blame | View Log

/* { dg-options "(-mips16) -mabi=64 -O2 -EL" } */
 
extern long double g[16];
extern unsigned char gstuff[0x10000];
 
NOMIPS16 long double
foo (long double i1, long double i2, long double i3, long double i4,
     long double *x, unsigned char *lstuff)
{
  g[0] = i1;
  g[1] = i2;
  g[2] = i3;
  g[3] = i4;
  x[0] = x[4];
  x[1] = 0;
  x[2] = 1.0;
  x[3] = g[4];
  x[4] = *(long double *) (lstuff + 0x7fff);
  return *(long double *) (gstuff + 0x7fff);
}
 
MIPS16 long double
bar (long double i1, long double i2, long double i3, long double i4,
     long double *x, unsigned char *lstuff)
{
  g[0] = i1;
  g[1] = i2;
  g[2] = i3;
  g[3] = i4;
  x[0] = x[4];
  x[1] = 0;
  x[2] = 1.0;
  x[3] = g[4];
  x[4] = *(long double *) (lstuff + 0x7fff);
  return *(long double *) (gstuff + 0x7fff);
}
 

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.