TestNumberOfContinuousZeros.java fails on PPC64

XMLWordPrintable

    • b25
    • ppc

      The test fails with the following output:

      Failed IR Rules (1) of Methods (1)
      ----------------------------------
      1) Method "public java.lang.Object[] compiler.vectorization.TestNumberOfContinuousZeros.testSpecialLongLeadingZeros(long[])" - [Failed IR rules: 1]:
         * @IR rule 1: "@compiler.lib.ir_framework.IR(phase={DEFAULT}, applyIfPlatformAnd={}, applyIfCPUFeatureOr={}, counts={"_#V#COUNT_LEADING_ZEROS_VL#_", "> 0"}, applyIfPlatformOr={}, failOn={}, applyIfPlatform={}, applyIfOr={}, applyIfCPUFeatureAnd={}, applyIf={}, applyIfCPUFeature={}, applyIfAnd={}, applyIfNot={})"
           > Phase "PrintIdeal":
             - counts: Graph contains wrong number of nodes:
               * Constraint 1: "(\\d+(\\s){2}(CountLeadingZerosV.*)+(\\s){2}===.*vector[A-Za-z]<J,2>)"
                 - Failed comparison: [found] 0 > 0 [given]
                 - No nodes matched!


      The reason is that on PPC VectorCastL2X is not implemented for performance reasons. Like many vector instructions on PPC the performance for the long type variants is too bad.
      The test needs to skip the IR matching on power.

            Assignee:
            David Briemann
            Reporter:
            David Briemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: