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

Incorrect register encoding of AVX-512 instruction for vector indexed load

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 11, 17, 20, 21, 22
    • hotspot

      An indexed load operation of the Vector API when compiled on AVX-512 systems generates a `vgatherdps` instruction.

      If the index register of `vgatherdps` is within a certain range then it is encoded incorrectly to use another register, which can lead to crashes or undefined behaviour.

      This potentially may have wider impact when generating other instructions either by the Vector API or by the auto-vectorizer.
       
      For detailed analysis and a potential fix see:

      https://mail.openjdk.org/pipermail/panama-dev/2023-October/020009.html

            psandoz Paul Sandoz
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: