[all-commits] [llvm/llvm-project] 756e51: [libc] Simplify fma handling for riscv (#149673)

Mikhail R. Gadelha via All-commits all-commits at lists.llvm.org
Sat Jul 19 15:11:14 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 756e515ce317a282fd5adf08b54600337346c6b0
      https://github.com/llvm/llvm-project/commit/756e515ce317a282fd5adf08b54600337346c6b0
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2025-07-19 (Sat, 19 Jul 2025)

  Changed paths:
    M libc/cmake/modules/LLVMLibCArchitectures.cmake
    M libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
    M libc/cmake/modules/LLVMLibCFlagRules.cmake
    M libc/src/__support/macros/properties/cpu_features.h

  Log Message:
  -----------
  [libc] Simplify fma handling for riscv (#149673)

This PR simplifies how we enable the different fma configs for riscv:

1. Removes __LIBC_RISCV_USE_FMA define
2. Checks if __riscv_flen is defined to set LIBC_TARGET_CPU_HAS_FMA

As a bonus, we enable *FMA_OPT tests for rv32, so any rv32 hardware that
doesn't implement the f/d extensions is also covered by the tests.



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