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

Incorrect march flag when building libsleef/vector_math_neon.c

XMLWordPrintable

    • b08
    • aarch64

        JDK-8312425 started building the libsleef library with $(SVE_CFLAGS) on aarch64. That variable expands to -march=armv8-a+sve if the compiler supports it.

        The flag should only be applied to the vector_math_sve.c file. Applying it to the whole library means it also gets applied to vector_math_neon.c, and the compiler (e.g. GCC) may select SVE instructions when generating code for it. When running the resulting JDK on a CPU which does not support SVE that will lead to an illegal instruction/SIGILL.

              mikael Mikael Vidstedt
              mikael Mikael Vidstedt
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: