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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [unordered-1.c] - Rev 774

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

/* { dg-do compile } */
 
void bar (int);
 
void foo (int i, float f)
{
  bar (__builtin_isgreater (i, i));	/* { dg-error "non-floating-point" } */
  bar (__builtin_isgreater (f, i));
  bar (__builtin_isgreater (i, f));
  bar (__builtin_isgreater (f, 2));
  bar (__builtin_isgreater (f, 2.0f));
  bar (__builtin_isgreater (f, 2.0));
  bar (__builtin_isgreater (2, f));
  bar (__builtin_isgreater (2.0f, f));
  bar (__builtin_isgreater (2.0, f));
  bar (__builtin_isgreater (&f, i));	/* { dg-error "non-floating-point" } */
  bar (__builtin_isgreater (f, &i));	/* { dg-error "non-floating-point" } */
}
 

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.