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

Extend IR annotation with new options to test specific target feature.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 19
    • hotspot
    • b02
    • generic

    Description

      Problem Definition:
      - Currently test invocations are guarded by @requires vm.cpu.feature tags which are specified as the part of test tag specifications.
      - This results into generating multiple test cases if some test points in a test file needs to be guarded by a specific features while others should still be executed in absence of missing target feature. This is specially important for IR checks based validation since C2 IR nodes creation may heavily rely on existence of specific target feature.
      - Test harness executes test points only if all the constraints specified in tag specifications are met, thus imposing an OR semantics b/w @requires tag based CPU features becomes tricky.

      Proposed solution:
      Extends existing @IR annotation with following two new options:-
      - applyIfTargetFeatureAnd:
      Accepts a list of feature pairs where each pair is composed of target feature string followed by a true/false value where a true value necessities existence of target feature and vice-versa. IR verifications checks are enforced only if all the specified feature constraints are met.

      - applyIfTargetFeatureOr: Accepts similar arguments as above option but IR verifications checks are enforced only when at least one of the specified feature constraints are met.

      Attachments

        Issue Links

          Activity

            People

              jbhateja Jatin Bhateja
              jbhateja Jatin Bhateja
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: