[all-commits] [llvm/llvm-project] c28871: [compiler-rt] [builtins] Use _Float16 on extendhfs...

Adhemerval Zanella via All-commits all-commits at lists.llvm.org
Thu Dec 3 11:10:33 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c288715e952fe0e179d645a76b0f518e2403a42b
      https://github.com/llvm/llvm-project/commit/c288715e952fe0e179d645a76b0f518e2403a42b
  Author: Adhemerval Zanella <adhemerval.zanella at linaro.org>
  Date:   2020-12-03 (Thu, 03 Dec 2020)

  Changed paths:
    M compiler-rt/cmake/builtin-config-ix.cmake
    M compiler-rt/lib/builtins/CMakeLists.txt
    M compiler-rt/lib/builtins/extendhfsf2.c
    M compiler-rt/lib/builtins/fp_extend.h
    M compiler-rt/lib/builtins/fp_trunc.h
    M compiler-rt/lib/builtins/truncdfhf2.c
    M compiler-rt/lib/builtins/truncsfhf2.c
    M compiler-rt/test/builtins/CMakeLists.txt
    M compiler-rt/test/builtins/Unit/extendhfsf2_test.c
    M compiler-rt/test/builtins/Unit/fp_test.h
    M compiler-rt/test/builtins/Unit/truncdfhf2_test.c
    M compiler-rt/test/builtins/Unit/truncsfhf2_test.c

  Log Message:
  -----------
  [compiler-rt] [builtins] Use _Float16 on extendhfsf2, truncdfhf2 __truncsfhf2 if available

On AArch64 it allows use the native FP16 ABI (although libcalls are
not emitted for fptrunc/fpext lowering), while on other architectures
the expected current semantic is preserved (arm for instance).

For testing the _Float16 usage is enabled by architecture base,
currently only for arm, aarch64, and arm64.

This re-enabled revert done by https://reviews.llvm.org/rGb534beabeed3ba1777cd0ff9ce552d077e496726

Reviewed By: MaskRay

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




More information about the All-commits mailing list