OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [unordered-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 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.