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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [unordered-2.c] - Rev 867

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

/* { dg-do link } */
 
void link_error ();
 
int main()
{
  if (__builtin_isgreater(1.0,2.0) != 0)
    link_error ();
  if (__builtin_isgreater(3.0,3.0) != 0)
    link_error ();
  if (__builtin_isgreater(5.0,4.0) == 0)
    link_error ();
 
  if (__builtin_isgreaterequal(1.0,2.0) != 0)
    link_error ();
  if (__builtin_isgreaterequal(3.0,3.0) == 0)
    link_error ();
  if (__builtin_isgreaterequal(5.0,4.0) == 0)
    link_error ();
 
  if (__builtin_isless(1.0,2.0) == 0)
    link_error ();
  if (__builtin_isless(3.0,3.0) != 0)
    link_error ();
  if (__builtin_isless(5.0,4.0) != 0)
    link_error ();
 
  if (__builtin_islessequal(1.0,2.0) == 0)
    link_error ();
  if (__builtin_islessequal(3.0,3.0) == 0)
    link_error ();
  if (__builtin_islessequal(5.0,4.0) != 0)
    link_error ();
 
  if (__builtin_islessgreater(1.0,2.0) == 0)
    link_error ();
  if (__builtin_islessgreater(3.0,3.0) != 0)
    link_error ();
  if (__builtin_islessgreater(5.0,4.0) == 0)
    link_error ();
 
  if (__builtin_isunordered(1.0,2.0) != 0)
    link_error ();
  if (__builtin_isunordered(3.0,3.0) != 0)
    link_error ();
  if (__builtin_isunordered(5.0,4.0) != 0)
    link_error ();
 
  return 0;
}
 
 

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.