This is an archive of the discontinued LLVM Phabricator instance.

[COMPILER-RT] Implement __extendsftf2, __extenddftf2
ClosedPublic

Authored by koviankevin on Feb 13 2014, 9:53 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

A common comment for all your recent compiler-rt patches: could you please add tests?

OK, we will add tests and update our patch

koviankevin updated this revision to Unknown Object (????).Feb 19 2014, 6:14 PM

add test

Please note the other comment by Joerg that it is more idiomatic to change these header files to .inc files that would be used like:

#define NAME runtimefuncf
#include "runtimefunc_impl.inc"

This avoids ugly '\' markers in the implementation, and brings back source highlighting in editors.

test/builtins/Unit/extenddftf2_test.c
24–25 ↗(On Diff #7229)

This is not testing much... If (long double) conversion is implemented as a call to the runtime library, this could be just calling back to the installed version of compiler-rt.

koviankevin updated this revision to Unknown Object (????).Feb 24 2014, 7:51 PM

Use CRT_HAS_128BIT and modify the codes according to gribozavr's comments

koviankevin updated this revision to Unknown Object (????).Feb 27 2014, 8:44 PM

introduce CRT_LDBL_128BIT

koviankevin updated this revision to Unknown Object (????).Mar 10 2014, 1:13 AM

modify by gribozavr's comment and use COMPILER_RT_ABI

koviankevin updated this revision to Diff 9737.May 23 2014, 1:11 AM
koviankevin retitled this revision from [COMPILER_RT] Implement __extendsftf2, __extenddftf2 to [COMPILER-RT] Implement __extendsftf2, __extenddftf2.

use UINT64_C and drop le64
extendsfdf2.c is refactored in D3887

joerg closed this revision.May 28 2014, 6:08 PM
joerg updated this revision to Diff 9900.
joerg added a subscriber: joerg.

Closed by commit rL209783 (authored by @joerg).