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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 9
    • 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

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

              Created:
              Updated:
              Resolved: