Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8231118

ARM32: Math tests failures

    XMLWordPrintable

Details

    • b11
    • aarch32
    • Verified

    Backports

      Description

        (synopsis is provisional, until we figure out the root cause)

        Current tier1 on arm32 fails lots of floating point tests. I believe this group fails for the same reason: floating point math is broken.

        jdk/internal/math/FloatingDecimal/TestFloatingDecimal.java
        java/lang/Math/CubeRootTests.java
        java/lang/Math/HypotTests.java
        java/lang/StrictMath/HypotTests.java
        compiler/floatingpoint/TestFMA.java
        java/util/stream/test/org/openjdk/tests/java/util/stream/FlatMapOpTest.java
        java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java
        java/util/stream/test/org/openjdk/tests/java/util/stream/StreamBuilderTest.java

        Example failure:

        $ CONF=linux-arm-server-fastdebug make run-test TEST=java/lang/Math/HypotTests.java

        STDERR:
        Failure for Math.hypot:
        For inputs Infinity (Infinity) and -0.0 (-0x0.0p0)
        expected Infinity (Infinity)
        got 3.5782016865100343E-98 (0x1.390e958a13839p-324);
        difference greater than ulp tolerance 1.0
        Failure for Math.hypot:
        For inputs -4.00444086E10 (-0x1.2a5aa5e3p35) and -3.0063828959E10 (-0x1.bffc67f7cp34)
        expected 5.0073830209E10 (0x1.751440682p35)
        got 3.5782016865100343E-98 (0x1.390e958a13839p-324);
        difference greater than ulp tolerance 1.0
        Failure for StrictMath.hypot:
        For inputs -3.0063828959E10 (-0x1.bffc67f7cp34) and -4.00444086E10 (-0x1.2a5aa5e3p35)
        expected 5.0073830209E10 (0x1.751440682p35)
        got 3.5782016865100343E-98 (0x1.390e958a13839p-324);
        difference greater than ulp tolerance 1.0
        Failure for Math.hypot:
        For inputs -9.32940233503019E307 (-0x1.09b5cf9036166p1023) and -1.2439203113373586E308 (-0x1.6247bf6af2c88p1023)
        expected 1.5549003891716982E308 (0x1.bad9af45af7aap1023)
        got 3.5782016865100343E-98 (0x1.390e958a13839p-324);
        difference greater than ulp tolerance 2.5
        Failure for StrictMath.hypot:
        For inputs -9.32940233503019E307 (-0x1.09b5cf9036166p1023) and -1.2439203113373586E308 (-0x1.6247bf6af2c88p1023)
        expected 1.5549003891716982E308 (0x1.bad9af45af7aap1023)
        got 3.5782016865100343E-98 (0x1.390e958a13839p-324);
        difference greater than ulp tolerance 2.5
        Testing the hypot incurred 5 failures.
        java.lang.RuntimeException
        at HypotTests.main(HypotTests.java:244)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:830)

        JavaTest Message: Test threw exception: java.lang.RuntimeException
        JavaTest Message: shutting down test

        STDOUT:
        Seed from RandomFactory = 7809222468893812843L

        TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException
        --------------------------------------------------

        Seems to fail with C2, C1, passes with interpreter.

        Attachments

          Issue Links

            Activity

              People

                bulasevich Boris Ulasevich
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: