[all-commits] [llvm/llvm-project] a0f130: [compiler-rt][builtins][RISCV] Set COMPILER_RT_HAS...

Luís Marques via All-commits all-commits at lists.llvm.org
Fri Jul 29 04:28:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a0f1304616d7f9dcc08c02321aa2cd99568e7713
      https://github.com/llvm/llvm-project/commit/a0f1304616d7f9dcc08c02321aa2cd99568e7713
  Author: Luís Marques <luismarques at lowrisc.org>
  Date:   2022-07-29 (Fri, 29 Jul 2022)

  Changed paths:
    M compiler-rt/test/builtins/CMakeLists.txt

  Log Message:
  -----------
  [compiler-rt][builtins][RISCV] Set COMPILER_RT_HAS_FLOAT16 for RISC-V compiler-rt tests, fixes test__extendhfsf2

Since D92241, compiler-rt/cmake/builtin-config-ix.cmake automatically tests
the host compiler for support of _Float16 and conditionally defines
COMPILER_RT_HAS_FLOAT16. That defines the macro while the compiler-rt
builtins are being built. To also define it during the compiler-rt test
runs requires whitelisting the architecture in
compiler-rt/test/builtins/CMakeLists.txt, as done in this patch. That seems
brittle. Ideally, we'd move to a solution where the target compiler was
automatically tested as well, but I'm not sure how feasible that is with the
current CMake setup.

For now, this patch whitelists RISC-V, fixing errors in test__extendhfsf2.
Alternate solutions that fix the root issue are welcome, though.

Differential Revision: https://reviews.llvm.org/D129432




More information about the All-commits mailing list