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

Unsupported vpbroadcastd instruction emitted on Granite Rapids architecture

XMLWordPrintable

    • 25

      sde64 -gnr256 -- java -Xint -version

      TID 1 SDE-ERROR: Executed instruction not valid for specified chip (GRANITE_RAPIDS) with input cpuid: 0x73bd18600641: vpbroadcastd zmm0, xmm0
      Instruction bytes are: 62 f2 7d 48 58 c0

      I checked with -debug-trace:

      INS 0x00007cb054600632 BASE jz 0x7cb05460065e
      INS 0x00007cb054600638 BASE mov ecx, 0xcafebabe | rcx = 0xcafebabe
      INS 0x00007cb05460063d AVX vmovd xmm0, ecx
      XMM0 := 00000000_00000000_00000000_cafebabe
      XMM0 := 0 1.68264e-314 (doubles)
      XMM0 := 0 0 0 -8.34698e+06 (floats)
      # $eof

      The code comes from:
      https://github.com/openjdk/jdk/blob/fc3d3d9b303652275599e315b2d7e534d92080ea/src/hotspot/cpu/x86/vm_version_x86.cpp#L533-L535

      This is a regression from JDK-8352675 in JDK 25.

            jbhateja Jatin Bhateja
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: