[PATCH] D69730: [compiler-rt][builtins][PowerPC] Add __fixtfti builtin on PowerPC
Baptiste Saleil via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 12:32:29 PDT 2019
bsaleil created this revision.
bsaleil added reviewers: hfinkel, echristo, masoud.ataei, renenkel, nemanjai, lei, amyk, PowerPC.
bsaleil added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers, steven.zhang, shchenz, jsji, kbarton, mgorny, dberris.
This patch implements __fixtfti builtin for PowerPC.
This builtin converts a long double (IBM double-double) to a signed int128.
The conversion relies on the unsigned conversion of the absolute value of the long double.
The patch also includes tests for this builtin using both positive and negative long doubles.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D69730
Files:
compiler-rt/lib/builtins/CMakeLists.txt
compiler-rt/lib/builtins/ppc/fixtfti.c
compiler-rt/test/builtins/Unit/ppc/fixtfti_test.c
compiler-rt/test/builtins/Unit/ppc/fixtfti_test.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69730.227505.patch
Type: text/x-patch
Size: 156766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191101/73ae8d68/attachment-0001.bin>
More information about the llvm-commits
mailing list