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

C2 SuperWord: TestCompatibleUseDefTypeSize.java fails with -XX:+AlignVector after JDK-8325155

XMLWordPrintable

    • b04
    • x86
    • linux

      We run into test failures on our KVM based Linux Alpine x86_64 .

      The test output says :
      One or more @IR rules failed:

      Failed IR Rules (2) of Methods (2)
      ----------------------------------
      1) Method "static java.lang.Object[] compiler.loopopts.superword.TestCompatibleUseDefTypeSize.test3(int[],int[])" - [Failed IR rules: 1]:
         * @IR rule 1: "@compiler.lib.ir_framework.IR(phase={DEFAULT}, applyIfPlatformAnd={}, applyIfCPUFeatureOr={"sse4.1", "true", "asimd", "true"}, counts={"_#V#LOAD_VECTOR_I#_", "> 0", "_#V#ADD_VI#_", "> 0", "_#STORE_VECTOR#_", "> 0"}, failOn={}, applyIfPlatform={"64-bit", "true"}, applyIfPlatformOr={}, applyIfOr={}, applyIfCPUFeatureAnd={}, applyIf={}, applyIfCPUFeature={}, applyIfAnd={}, applyIfNot={})"
           > Phase "PrintIdeal":
             - counts: Graph contains wrong number of nodes:
               * Constraint 1: "(\\d+(\\s){2}(LoadVector.*)+(\\s){2}===.*vector[A-Za-z]\\[4\\]:\\{int\\})"
                 - Failed comparison: [found] 0 > 0 [given]
                 - No nodes matched!
               * Constraint 2: "(\\d+(\\s){2}(AddVI.*)+(\\s){2}===.*vector[A-Za-z]\\[4\\]:\\{int\\})"
                 - Failed comparison: [found] 0 > 0 [given]
                 - No nodes matched!
               * Constraint 3: "(\\d+(\\s){2}(StoreVector.*)+(\\s){2}===.*)"
                 - Failed comparison: [found] 0 > 0 [given]
                 - No nodes matched!

      2) Method "static java.lang.Object[] compiler.loopopts.superword.TestCompatibleUseDefTypeSize.test4(int[],int[])" - [Failed IR rules: 1]:
         * @IR rule 1: "@compiler.lib.ir_framework.IR(phase={DEFAULT}, applyIfPlatformAnd={}, applyIfCPUFeatureOr={"sse4.1", "true", "asimd", "true"}, counts={"_#V#LOAD_VECTOR_I#_", "> 0", "_#V#ADD_VI#_", "> 0", "_#STORE_VECTOR#_", "> 0"}, failOn={}, applyIfPlatform={"64-bit", "true"}, applyIfPlatformOr={}, applyIfOr={}, applyIfCPUFeatureAnd={}, applyIf={}, applyIfCPUFeature={}, applyIfAnd={}, applyIfNot={})"
           > Phase "PrintIdeal":
             - counts: Graph contains wrong number of nodes:
               * Constraint 1: "(\\d+(\\s){2}(LoadVector.*)+(\\s){2}===.*vector[A-Za-z]\\[4\\]:\\{int\\})"
                 - Failed comparison: [found] 0 > 0 [given]
                 - No nodes matched!
               * Constraint 2: "(\\d+(\\s){2}(AddVI.*)+(\\s){2}===.*vector[A-Za-z]\\[4\\]:\\{int\\})"
                 - Failed comparison: [found] 0 > 0 [given]
                 - No nodes matched!
               * Constraint 3: "(\\d+(\\s){2}(StoreVector.*)+(\\s){2}===.*)"
                 - Failed comparison: [found] 0 > 0 [given]
                 - No nodes matched!

      >>> Check stdout for compilation output of the failed methods


        #############################################################
         - To only run the failed tests use -DTest, -DExclude,
           and/or -DScenarios.
         - To also get the standard output of the test VM run with
           -DReportStdout=true or for even more fine-grained logging
           use -DVerbose=true.
        #############################################################


      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:754)
      at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:719)
      at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:339)
      at compiler.lib.ir_framework.TestFramework.run(TestFramework.java:223)
      at compiler.lib.ir_framework.TestFramework.run(TestFramework.java:212)
      at compiler.loopopts.superword.TestCompatibleUseDefTypeSize.main(TestCompatibleUseDefTypeSize.java:75)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1575)

        1. TestB.java
          0.8 kB
          Emanuel Peter
        2. TestB_MyAlpine.log
          574 kB
          Matthias Baesken
        3. TestB_Emanuel.log
          533 kB
          Emanuel Peter

            epeter Emanuel Peter
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: