Mercurial > hg > graal-compiler
changeset 17201:3f176485d807
Test cornercase in floating point subtraction.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Wed, 24 Sep 2014 15:28:14 +0200 |
parents | 56458afc02a3 |
children | dfe30d721f3f |
files | graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/bytecode/BC_dsub2.java |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/bytecode/BC_dsub2.java Wed Sep 24 14:57:03 2014 +0200 +++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/bytecode/BC_dsub2.java Wed Sep 24 15:28:14 2014 +0200 @@ -39,4 +39,17 @@ runTest("test", 0.0d); } + public static double test2(double a) { + return a - a; + } + + @Test + public void run1() { + runTest("test2", 17.3); + } + + @Test + public void run2() { + runTest("test2", Double.NaN); + } }