This is an archive of the discontinued LLVM Phabricator instance.

[Compiler-RT] Implements __gnu_f2h_ieee and __gnu_h2f_ieee
AbandonedPublic

Authored by ab on Aug 15 2014, 6:45 AM.

Details

Reviewers
shawfly
Summary

On platforms which have no fp16 registers and instructions; It use lib-calls(gnu_f2h_ieee and gnu_h2f_ieee) to lower convert_from_fp16(llvm.convert.from.fp16) and convert_to_fp16(llvm.convert.to.fp16), but there are no implementations for these two lib-calls. This patch implements gnu_f2h_ieee and gnu_h2f_ieee for the compiler_rt library.

Diff Detail

Event Timeline

shawfly updated this revision to Diff 12554.Aug 15 2014, 6:45 AM
shawfly retitled this revision from to [Compiler-RT] Implements __gnu_f2h_ieee and __gnu_h2f_ieee.
shawfly updated this object.
shawfly edited the test plan for this revision. (Show Details)
shawfly added a subscriber: Unknown Object (MLST).
ab commandeered this revision.May 12 2015, 11:45 AM
ab abandoned this revision.
ab added a reviewer: shawfly.

With the generic conversion functions, this boils down to the pretty trivial rL237161. Closing.