[IR Framework] Multiple test failures after JDK-8371789

XMLWordPrintable

    • In Review
    • 26

      3 test failures across multiuple platforms

      Test: testlibrary_tests/ir_framework/examples/IRExample.java

      Failed IR Rules (2) of Methods (2)
      ----------------------------------
      1) Method "public void ir_framework.examples.IRExample.goodCounts()" - [Failed IR rules: 1]:
         * @IR rule 5: "@compiler.lib.ir_framework.IR(phase={DEFAULT}, applyIfPlatformAnd={}, applyIfCPUFeatureOr={}, counts={"_#C#STORE_OF_FIELD#_", "iFld", "1", "_#STORE#_", "2", "_#C#STORE_OF_CLASS#_", "IRExample", "2"}, failOn={}, applyIfPlatform={}, applyIfPlatformOr={}, applyIfOr={}, applyIfCPUFeatureAnd={}, applyIf={}, applyIfCPUFeature={}, applyIfAnd={}, applyIfNot={})"
           > Phase "PrintIdeal":
             - counts: Graph contains wrong number of nodes:
               * Constraint 3: "(\\d+(\\s){2}(Store(B|C|S|I|L|F|D|P|N).*)+(\\s){2}===.*@(\\w+: ?)+(\\w/)*(\\w$)*\\bIRExample( \\([^\\)]+\\))?:\\w+.*)"
                 - Failed comparison: [found] 0 = 2 [given]
                 - No nodes matched!

      2) Method "public void ir_framework.examples.IRExample.mixFailOnAndCounts()" - [Failed IR rules: 1]:
         * @IR rule 1: "@compiler.lib.ir_framework.IR(phase={DEFAULT}, applyIfPlatformAnd={}, applyIfCPUFeatureOr={}, counts={"_#LOAD#_", "2", "_#C#LOAD_OF_FIELD#_", "iFld2", "1", "_#C#LOAD_OF_CLASS#_", "IRExample", "2"}, failOn={"_#ALLOC#_", "_#LOOP#_"}, applyIfPlatform={}, applyIfPlatformOr={}, applyIfOr={}, applyIfCPUFeatureAnd={}, applyIf={}, applyIfCPUFeature={}, applyIfAnd={}, applyIfNot={})"
           > Phase "PrintIdeal":
             - counts: Graph contains wrong number of nodes:
               * Constraint 3: "(\\d+(\\s){2}(Load(B|UB|S|US|I|L|F|D|P|N).*)+(\\s){2}===.*@(\\w+: ?)+(\\w/)*(\\w$)*\\bIRExample( \\([^\\)]+\\))?:\\w+.*)"
                 - Failed comparison: [found] 0 = 2 [given]
                 - No nodes matched!

      Test: testlibrary_tests/ir_framework/tests/TestIRMatching.java

      MESSAGE: Constraint BadFailOnConstraint, Class CheckCastArray, Method array(java.lang.Object[]), Rule 1 with "failOn", regex: 1 should have been matched: expected true, was false
      ************************
      ====================================
      ********************
      ***** OVERVIEW *****
      ********************
      1) compiler.lib.ir_framework.driver.irmatching.IRViolationException: There were one or multiple IR rule failures. Please check stderr for more information.
      at compiler.lib.ir_framework.driver.irmatching.IRMatcher.reportFailures(IRMatcher.java:61)
      at compiler.lib.ir_framework.driver.irmatching.IRMatcher.match(IRMatcher.java:49)
      at compiler.lib.ir_framework.TestFramework.runTestVM(TestFramework.java:887)
      at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:839)
      at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:431)
      at ir_framework.tests.TestIRMatching.runFramework(TestIRMatching.java:380)
      at ir_framework.tests.TestIRMatching.runWithArguments(TestIRMatching.java:385)
      at ir_framework.tests.TestIRMatching.main(TestIRMatching.java:72)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1516)
      ********************
      2) java.lang.RuntimeException: Constraint BadFailOnConstraint, Class MultipleFailOnBad, Method fail3(), Rule 1 with "failOn", regex: 2 should have been matched: expected true, was false
      at jdk.test.lib.Asserts.fail(Asserts.java:715)
      at jdk.test.lib.Asserts.assertTrue(Asserts.java:545)
      at ir_framework.tests.Constraint.checkConstraint(TestIRMatching.java:1611)
      at ir_framework.tests.TestIRMatching.checkConstraints(TestIRMatching.java:418)
      at ir_framework.tests.TestIRMatching.runCheck(TestIRMatching.java:404)
      at ir_framework.tests.TestIRMatching.runCheck(TestIRMatching.java:411)
      at ir_framework.tests.TestIRMatching.main(TestIRMatching.java:78)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1516)
      ********************
      3) java.lang.RuntimeException: Constraint BadFailOnConstraint, Class Loads, Method load(), Rule 6 with "failOn", regex: 1 should have been matched: expected true, was false
      at jdk.test.lib.Asserts.fail(Asserts.java:715)
      at jdk.test.lib.Asserts.assertTrue(Asserts.java:545)
      at ir_framework.tests.Constraint.checkConstraint(TestIRMatching.java:1611)
      at ir_framework.tests.TestIRMatching.checkConstraints(TestIRMatching.java:418)
      at ir_framework.tests.TestIRMatching.runCheck(TestIRMatching.java:404)
      at ir_framework.tests.TestIRMatching.main(TestIRMatching.java:167)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1516)
      ********************
      4) java.lang.RuntimeException: Constraint BadFailOnConstraint, Class CheckCastArray, Method array(java.lang.Object[]), Rule 1 with "failOn", regex: 1 should have been matched: expected true, was false
      at jdk.test.lib.Asserts.fail(Asserts.java:715)
      at jdk.test.lib.Asserts.assertTrue(Asserts.java:545)
      at ir_framework.tests.Constraint.checkConstraint(TestIRMatching.java:1611)
      at ir_framework.tests.TestIRMatching.checkConstraints(TestIRMatching.java:418)
      at ir_framework.tests.TestIRMatching.runCheck(TestIRMatching.java:404)
      at ir_framework.tests.TestIRMatching.runCheck(TestIRMatching.java:411)
      at ir_framework.tests.TestIRMatching.main(TestIRMatching.java:258)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1516)

      Test: testlibrary_tests/ir_framework/tests/TestPhaseIRMatching.java

      "Expected Failures" WITHOUT "Found Failures":
      []
      "Found Failures" WITHOUT "Expected Failures":
      Failure[methodName=loadDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=1]
      Failure[methodName=loadDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=2]
      Failure[methodName=loadDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=3]
      Failure[methodName=loadDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=4]
      Failure[methodName=loadDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=5]
      Failure[methodName=loadDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=6]
      Failure[methodName=loadDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=7]
      Failure[methodName=loadDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=8]
      Failure[methodName=loadWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=1]
      Failure[methodName=loadWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=2]
      Failure[methodName=loadWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=3]
      Failure[methodName=loadWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=4]
      Failure[methodName=loadWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=5]
      Failure[methodName=loadWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=6]
      Failure[methodName=loadWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=7]
      Failure[methodName=loadWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=8]
      Failure[methodName=loadWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=1]
      Failure[methodName=loadWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=2]
      Failure[methodName=loadWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=3]
      Failure[methodName=loadWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=4]
      Failure[methodName=loadWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=5]
      Failure[methodName=loadWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=6]
      Failure[methodName=loadWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=7]
      Failure[methodName=loadWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=8]
      Failure[methodName=simpleLoad, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=1]
      Failure[methodName=simpleLoad, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=2]
      Failure[methodName=simpleLoad, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=3]
      Failure[methodName=simpleLoad, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=4]
      Failure[methodName=simpleLoad, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=5]
      Failure[methodName=simpleLoad, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=6]
      Failure[methodName=simpleStore, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=1]
      Failure[methodName=simpleStore, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=2]
      Failure[methodName=simpleStore, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=3]
      Failure[methodName=simpleStore, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=4]
      Failure[methodName=simpleStore, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=5]
      Failure[methodName=simpleStore, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=6]
      Failure[methodName=storeDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=1]
      Failure[methodName=storeDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=2]
      Failure[methodName=storeDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=3]
      Failure[methodName=storeDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=4]
      Failure[methodName=storeDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=5]
      Failure[methodName=storeDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=6]
      Failure[methodName=storeDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=7]
      Failure[methodName=storeDoubleNested, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=8]
      Failure[methodName=storeWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=1]
      Failure[methodName=storeWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=2]
      Failure[methodName=storeWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=3]
      Failure[methodName=storeWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=4]
      Failure[methodName=storeWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=5]
      Failure[methodName=storeWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=6]
      Failure[methodName=storeWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=7]
      Failure[methodName=storeWithInterface, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=8]
      Failure[methodName=storeWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=1]
      Failure[methodName=storeWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=2]
      Failure[methodName=storeWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=3]
      Failure[methodName=storeWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=4]
      Failure[methodName=storeWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=5]
      Failure[methodName=storeWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=6]
      Failure[methodName=storeWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=7]
      Failure[methodName=storeWithInterfaces, irRuleId=1, compilePhase=PRINT_IDEAL, checkAttributeType=COUNTS, constraintId=8]
      ----------System.err:(14/885)----------
      java.lang.RuntimeException: did not find the same failures
      at jdk.test.lib.Asserts.fail(Asserts.java:715)
      at ir_framework.tests.TestPhaseIRMatching.reportFailure(TestPhaseIRMatching.java:98)
      at ir_framework.tests.TestPhaseIRMatching.run(TestPhaseIRMatching.java:78)
      at ir_framework.tests.TestPhaseIRMatching.main(TestPhaseIRMatching.java:63)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1516)


      Started failing with the change from JDK-8371789, JDK-8371458 and JDK-8371581

            Assignee:
            Christian Hagedorn
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: