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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [CompareNaN.java] - Blame information for rev 775

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

Line No. Rev Author Line
1 765 jeremybenn
/*
2
 * JLS 4.2.3 specifies that (x op y) must be false if either x or y
3
 * is NaN and op is one of <, >, <=, >=, or ==.
4
 *
5
 * Some targets may need specific options wired into libgcj.spec
6
 * to pass this test.  For example, alpha-linux requires -mieee
7
 * to prevent an unrecoverable fp trap.
8
 */
9
 
10
public class CompareNaN {
11
  public static void main(String[] args) {
12
    double x = Double.NaN;
13
    System.out.println(x == x);
14
  }
15
}

powered by: WebSVN 2.1.0

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