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] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
 
3
void bar (int);
4
 
5
void foo (int i, float f)
6
{
7
  bar (__builtin_isgreater (i, i));     /* { dg-error "non-floating-point" } */
8
  bar (__builtin_isgreater (f, i));
9
  bar (__builtin_isgreater (i, f));
10
  bar (__builtin_isgreater (f, 2));
11
  bar (__builtin_isgreater (f, 2.0f));
12
  bar (__builtin_isgreater (f, 2.0));
13
  bar (__builtin_isgreater (2, f));
14
  bar (__builtin_isgreater (2.0f, f));
15
  bar (__builtin_isgreater (2.0, f));
16
  bar (__builtin_isgreater (&f, i));    /* { dg-error "non-floating-point" } */
17
  bar (__builtin_isgreater (f, &i));    /* { dg-error "non-floating-point" } */
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.