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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [edge.c] - Rev 704

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

/* { dg-do compile } */
/* { dg-options "-O -mcpu=ultrasparc -mvis" } */
 
long test_edge8 (void *p1, void *p2)
{
  return __builtin_vis_edge8 (p1, p2);
}
 
long test_edge8l (void *p1, void *p2)
{
  return __builtin_vis_edge8l (p1, p2);
}
 
long test_edge16 (void *p1, void *p2)
{
  return __builtin_vis_edge16 (p1, p2);
}
 
long test_edge16l (void *p1, void *p2)
{
  return __builtin_vis_edge16l (p1, p2);
}
 
long test_edge32 (void *p1, void *p2)
{
  return __builtin_vis_edge32 (p1, p2);
}
 
long test_edge32l (void *p1, void *p2)
{
  return __builtin_vis_edge32l (p1, p2);
}
 
/* { dg-final { scan-assembler "edge8\t%" } } */
/* { dg-final { scan-assembler "edge8l\t%" } } */
/* { dg-final { scan-assembler "edge16\t%" } } */
/* { dg-final { scan-assembler "edge16l\t%" } } */
/* { dg-final { scan-assembler "edge32\t%" } } */
/* { dg-final { scan-assembler "edge32l\t%" } } */
 

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.