[all-commits] [llvm/llvm-project] 5fd406: [PowerPC] Add intrinsic to convert between ppc_fp1...

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Fri Nov 5 02:02:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5fd406e254b22f26743284729ec5da99cc927add
      https://github.com/llvm/llvm-project/commit/5fd406e254b22f26743284729ec5da99cc927add
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2021-11-05 (Fri, 05 Nov 2021)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicsPowerPC.td
    M llvm/include/llvm/IR/RuntimeLibcalls.def
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/test/CodeGen/PowerPC/f128-truncateNconv.ll

  Log Message:
  -----------
  [PowerPC] Add intrinsic to convert between ppc_fp128 and fp128

ppc_fp128 and fp128 are both 128-bit floating point types. However, we
can't do conversion between them now, since trunc/ext are not allowed
for same-size fp types.

This patch adds two new intrinsics: llvm.ppc.convert.f128.to.ppcf128 and
llvm.convert.ppcf128.to.f128, to support such conversion.

Reviewed By: shchenz

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




More information about the All-commits mailing list