[all-commits] [llvm/llvm-project] 933d6b: [FMV][compiler-rt] Fix cpu features initialization...

Alexandros Lamprineas via All-commits all-commits at lists.llvm.org
Thu Jun 13 03:46:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 933d6be8e8c4a81f6409f4daaf704e7f363c6508
      https://github.com/llvm/llvm-project/commit/933d6be8e8c4a81f6409f4daaf704e7f363c6508
  Author: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
  Date:   2024-06-13 (Thu, 13 Jun 2024)

  Changed paths:
    M compiler-rt/lib/builtins/aarch64/sme-abi-vg.c
    M compiler-rt/lib/builtins/cpu_model/aarch64/fmv/android.inc
    M compiler-rt/lib/builtins/cpu_model/aarch64/fmv/freebsd.inc
    M compiler-rt/lib/builtins/cpu_model/aarch64/fmv/fuchsia.inc
    M compiler-rt/lib/builtins/cpu_model/aarch64/fmv/mrs.inc
    M compiler-rt/lib/builtins/cpu_model/aarch64/fmv/sysauxv.inc
    M compiler-rt/lib/builtins/cpu_model/aarch64/hwcap.inc

  Log Message:
  -----------
  [FMV][compiler-rt] Fix cpu features initialization. (#95149)

To detect features we either use HWCAPs or directly extract system
register bitfields and compare with a value. In many cases equality
comparisons give wrong results for example FEAT_SVE is not set if SVE2
is available (see the issue #93651). I am also making the access to
__aarch64_cpu_features atomic.

The corresponding PR for the ACLE specification is
https://github.com/ARM-software/acle/pull/322.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list