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

[IR Framework] CPU preconditions are overriden by regular preconditions

XMLWordPrintable

    • b18

      If both CPU feature preconditions and regular preconditions are specified for a test, the CPU feature preconditions are ignored and only the regular preconditions are evaluated. The expected behavior is that both sources of preconditions should be evaluated in a conjunction.

      The problem can be reproduced by following these steps:
      1. Download and copy the attached reproducer file to test/hotspot/jtreg/compiler/Reproducer.java.
      2. Run $ make run-test TEST="compiler/Reproducer.java"

      The test "testApplyBoth()" should pass since the conjunction of its preconditions is false, however it fails because only the regular precondition ("applyIf") is evaluated.

        1. Reproducer.java
          2 kB
          Roberto Castaneda Lozano

            rcastanedalo Roberto Castaneda Lozano
            rcastanedalo Roberto Castaneda Lozano
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: