JDK-6612732 : Client VM fails jit/common/wide test on x86 with UseSSE=1
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: x86
  • Submitted: 2007-10-03
  • Updated: 2010-04-03
  • Resolved: 2007-11-29
Description
It sees, it is old problem.

hsdev-5% cat wide.java
class wide
{
   public static void main(String[] arg) {
       float  f1 = Float.MAX_VALUE;
       float  f2 = Float.MAX_VALUE;
       double d1 = Double.MAX_VALUE;
       double d2 = Double.MAX_VALUE;

       if(f1 * f2 == Float.POSITIVE_INFINITY) 
           System.out.println("Float test PASSES.");
       else
           System.out.println("Float test FAILS");

       if(d1 * d2 == Double.POSITIVE_INFINITY) 
           System.out.println("Double test PASSES.");
       else
           System.out.println("Double test FAILS");

   }
}
hsdev-5% /java/re/jdk/1.6.0/latest/binaries/solaris-i586/bin/java -client -Xcomp -XX:CompileThreshold=100 -XX:UseSSE=1 wide
Float test PASSES.
Double test FAILS

hsdev-5% /java/re/jdk/7/latest/binaries/solaris-i586/bin/java -client -Xcomp -XX:CompileThreshold=100 -XX:UseSSE=1 wide
Float test PASSES.
Double test FAILS

hsdev-5% /java/re/jdk/1.6.0/latest/binaries/solaris-i586/bin/java -server -Xcomp -XX:CompileThreshold=100 -XX:UseSSE=1 wide
Float test PASSES.
Double test PASSES.

hsdev-5% /java/re/jdk/7/latest/binaries/solaris-i586/bin/java -server -Xcomp -XX:CompileThreshold=100 -XX:UseSSE=1 wide
Float test PASSES.
Double test PASSES.