[all-commits] [llvm/llvm-project] 910a4b: [compiler-rt] Implement __extendxftf2 and __trunct...
Alexander Shaposhnikov via All-commits
all-commits at lists.llvm.org
Mon Oct 16 16:12:46 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 910a4bf5b70ae14e7262677a8880ee98056e44e1
https://github.com/llvm/llvm-project/commit/910a4bf5b70ae14e7262677a8880ee98056e44e1
Author: Alexander Shaposhnikov <6532716+alexander-shaposhnikov at users.noreply.github.com>
Date: 2023-10-16 (Mon, 16 Oct 2023)
Changed paths:
M compiler-rt/lib/builtins/CMakeLists.txt
A compiler-rt/lib/builtins/extendxftf2.c
M compiler-rt/lib/builtins/fp_extend.h
M compiler-rt/lib/builtins/fp_extend_impl.inc
M compiler-rt/lib/builtins/fp_trunc.h
M compiler-rt/lib/builtins/fp_trunc_impl.inc
A compiler-rt/lib/builtins/trunctfxf2.c
M compiler-rt/test/builtins/Unit/addtf3_test.c
M compiler-rt/test/builtins/Unit/divtf3_test.c
M compiler-rt/test/builtins/Unit/extenddftf2_test.c
M compiler-rt/test/builtins/Unit/extendhftf2_test.c
M compiler-rt/test/builtins/Unit/extendsftf2_test.c
A compiler-rt/test/builtins/Unit/extendxftf2_test.c
M compiler-rt/test/builtins/Unit/floatditf_test.c
M compiler-rt/test/builtins/Unit/floatsitf_test.c
M compiler-rt/test/builtins/Unit/floatunditf_test.c
M compiler-rt/test/builtins/Unit/floatunsitf_test.c
M compiler-rt/test/builtins/Unit/fp_test.h
M compiler-rt/test/builtins/Unit/multf3_test.c
M compiler-rt/test/builtins/Unit/subtf3_test.c
A compiler-rt/test/builtins/Unit/trunctfxf2_test.c
Log Message:
-----------
[compiler-rt] Implement __extendxftf2 and __trunctfxf2 for x86_64 (#66918)
This patch implements __extendxftf2 (long double -> f128) and
__trunctfxf2 (f128 -> long double) on x86_64.
This is a preparation to unblock https://reviews.llvm.org/D53608,
We intentionally do not modify compiler-rt/lib/builtins/fp_lib.h in this
PR
(in particular, to limit the scope and avoid exposing other functions on
X86_64 in this PR).
Instead, TODOs were added to use fp_lib.h once it is available.
Test plan:
1. ninja check-compiler-rt (verified on X86_64 and on Aarch64)
In particular, new tests (extendxftf2_test.c and trunctfxf2_test.c) were
added.
2. compared the results of conversions with what other compilers (gcc)
produce.
More information about the All-commits
mailing list