Support cmov vectorization for float

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 10
    • Affects Version/s: 9
    • Component/s: hotspot
    • b36
    • x86_64
    • linux

        JDK-8139340 has added vectorization support for double cmoves. Float support is a trivial extension which can piggyback on top of existing algorithm.

        With such an enhancement, the following pattern can be supported:
        {code}
        private void cmove_kernel_float(float[] in1, float[] in2, int length, float[] out) {
          for (int i = 0; i < length; i++) {
            out[i] = (in1[i] > in2[i]) ? in1[i] : in2[i];
          }
        }
        {code}

              Assignee:
              Razvan Lupusoru (Inactive)
              Reporter:
              Razvan Lupusoru (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: