OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.target/] [mips/] [movcc-3.c] - Diff between revs 321 and 384

Only display areas with differences | Details | Blame | View Log

Rev 321 Rev 384
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 isa>=4 -mhard-float" } */
/* { dg-options "-O2 isa>=4 -mhard-float" } */
/* { dg-final { scan-assembler "movt" } } */
/* { dg-final { scan-assembler "movt" } } */
/* { dg-final { scan-assembler "movf" } } */
/* { dg-final { scan-assembler "movf" } } */
/* { dg-final { scan-assembler "movz.s" } } */
/* { dg-final { scan-assembler "movz.s" } } */
/* { dg-final { scan-assembler "movn.s" } } */
/* { dg-final { scan-assembler "movn.s" } } */
/* { dg-final { scan-assembler "movt.s" } } */
/* { dg-final { scan-assembler "movt.s" } } */
/* { dg-final { scan-assembler "movz.d" } } */
/* { dg-final { scan-assembler "movz.d" } } */
/* { dg-final { scan-assembler "movn.d" } } */
/* { dg-final { scan-assembler "movn.d" } } */
/* { dg-final { scan-assembler "movf.d" } } */
/* { dg-final { scan-assembler "movf.d" } } */
 
 
void ext_int (int);
void ext_int (int);
void ext_long (long);
void ext_long (long);
void ext_float (float);
void ext_float (float);
void ext_double (double);
void ext_double (double);
 
 
NOMIPS16 int
NOMIPS16 int
sub3 (int i, int j, float f)
sub3 (int i, int j, float f)
{
{
  ext_int (f ? i : j);
  ext_int (f ? i : j);
}
}
 
 
NOMIPS16 long
NOMIPS16 long
sub6 (long i, long j, float f)
sub6 (long i, long j, float f)
{
{
  ext_long (!f ? i : j);
  ext_long (!f ? i : j);
}
}
 
 
NOMIPS16 float
NOMIPS16 float
sub7 (float f, float g, int i)
sub7 (float f, float g, int i)
{
{
  ext_float (i ? f : g);
  ext_float (i ? f : g);
}
}
 
 
NOMIPS16 float
NOMIPS16 float
sub8 (float f, float g, long l)
sub8 (float f, float g, long l)
{
{
  ext_float (!l ? f : g);
  ext_float (!l ? f : g);
}
}
 
 
NOMIPS16 float
NOMIPS16 float
sub9 (float f, float g, float h)
sub9 (float f, float g, float h)
{
{
  ext_float (h ? f : g);
  ext_float (h ? f : g);
}
}
 
 
NOMIPS16 double
NOMIPS16 double
suba (double f, double g, int i)
suba (double f, double g, int i)
{
{
  ext_double (i ? f : g);
  ext_double (i ? f : g);
}
}
 
 
NOMIPS16 double
NOMIPS16 double
subb (double f, double g, long l)
subb (double f, double g, long l)
{
{
  ext_double (!l ? f : g);
  ext_double (!l ? f : g);
}
}
 
 
NOMIPS16 double
NOMIPS16 double
subc (double f, double g, double h)
subc (double f, double g, double h)
{
{
  ext_double (!h ? f : g);
  ext_double (!h ? f : g);
}
}
 
 

powered by: WebSVN 2.1.0

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