[Bug 500] Shark on ARM Math.log incosistent results
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Mon May 24 02:16:23 PDT 2010
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=500
------- Comment #1 from xerxes at zafena.se 2010-05-24 09:16 -------
I tweaked the testcase to print the hexadecimal form of the generated results
using Double.toHexString() :
public class Test {
static double log_value = 17197;
static double log_result = Math.log(log_value);
public static void main(String[] args) throws Exception {
for (int i = 0; i < 1000000; i++) {
double log_result2 = Math.log(log_value);
if (log_result2 != log_result) {
System.out.println("javac: "+Double.toHexString(log_result)+"
jit: "+Double.toHexString(log_result2));
throw new InternalError("Math.log produces inconsistent
results: " + log_result2 + " != " + log_result);
}
}
}
}
outputs:
$ java -Xcomp -XX:CompileOnly=Test.main Test
javac: 0x1.38146663817e8p3 jit: 0x1.38146663817e7p3
Exception in thread "main" java.lang.InternalError: Math.log produces
inconsistent results: 9.752490228984199 != 9.7524902289842
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the distro-pkg-dev
mailing list