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

Compare with Previous | Blame | View Log

/* Test that the compiler properly optimizes conditional floating point moves
   into the pcmov instruction on XOP systems.  */
 
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O2 -mxop" } */
 
extern void exit (int);
 
double dbl_test (double a, double b, double c, double d)
{
  return (a > b) ? c : d;
}
 
double dbl_a = 1, dbl_b = 2, dbl_c = 3, dbl_d = 4, dbl_e;
 
int main()
{
  dbl_e = dbl_test (dbl_a, dbl_b, dbl_c, dbl_d);
  exit (0);
}
 
/* { dg-final { scan-assembler "vpcmov" } } */
 

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.