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

[vectorapi] Matcher::supports_vector_comparison_unsigned is not needed on x86

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • hotspot
    • b07
    • x86

      Currently, we perform vector unsigned comparison on AVX1, 2 by zero extending elements and compare the extended elements. This is not needed because x <=> y == (x + min_value) u<=> (y + min_value) (<=> is the spaceship operator, see Integer/Long.compareUnsigned).

      The same logic could also be applied to SVE, where unsigned comparison is currently rejected.

            sviswanathan Sandhya Viswanathan
            qamai Quan Anh Mai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: