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

Adhemerval Zanella via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 27 11:47:36 PST 2020


zatrazz created this revision.
zatrazz added reviewers: ostannard, bryanpkc, atrosinenko, MaskRay.
Herald added subscribers: Sanitizers, kristof.beyls, mgorny, dberris.
Herald added a project: Sanitizers.
zatrazz requested review of this revision.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92241

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92241.308097.patch
Type: text/x-patch
Size: 13503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201127/c13c4e54/attachment-0001.bin>


More information about the llvm-commits mailing list