OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [vis3move-2.c] - Rev 716

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O1 -mvis3" } */
 
double d;
float f;
 
long test_convert_from_float(void)
{
  return f;
}
 
long test_convert_from_double(void)
{
  return d;
}
 
float test_convert_to_float(long x)
{
  return x;
}
 
double test_convert_to_double(long x)
{
  return x;
}
 
/* { dg-final { scan-assembler-times "movdtox\t%" 2 } } */
/* { dg-final { scan-assembler-times "movxtod\t%" 2 } } */
 

Go to most recent revision | 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.