[all-commits] [llvm/llvm-project] 9e676d: [PowerPC][compiler-rt][builtins]Add __fixtfti buil...

Lei Huang via All-commits all-commits at lists.llvm.org
Mon Nov 25 12:54:14 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e676d9c7e6423961c5f6a31cfa2256259848dbc
      https://github.com/llvm/llvm-project/commit/9e676d9c7e6423961c5f6a31cfa2256259848dbc
  Author: Lei Huang <lei at ca.ibm.com>
  Date:   2019-11-25 (Mon, 25 Nov 2019)

  Changed paths:
    M compiler-rt/lib/builtins/CMakeLists.txt
    A compiler-rt/lib/builtins/ppc/fixtfti.c
    A compiler-rt/test/builtins/Unit/ppc/fixtfti_test.c
    A compiler-rt/test/builtins/Unit/ppc/fixtfti_test.h

  Log Message:
  -----------
  [PowerPC][compiler-rt][builtins]Add __fixtfti builtin on PowerPC

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.

Tests included for both positive and negative long doubles.

Patch By: Baptiste Saleil

Differential Revision: https://reviews.llvm.org/D69730




More information about the All-commits mailing list