compiler/intrinsics/bmi/TestAndnI.java should exit gracefully if BMI1 instructions are not supported

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot

      The tests checks if bmi instructions are supported.
      If they aren't it runs the test anyway and gets unexpected output.

      if (!CPUInfo.hasFeature("bmi1")) {
          System.out.println("INFO: CPU does not support bmi1 feature.");
      }

      ----------System.out:(5/2165)----------
      INFO: CPU does not support bmi1 feature.

       stderr: [Java HotSpot(TM) Server VM warning: BMI1 instructions are not available on this CPU (AVX is also required)
      CompileCommand: compileonly TestAndnI$AndnIExpr.*
      ]
       exitValue = 137

            Assignee:
            Unassigned
            Reporter:
            Joseph Provino (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: