[all-commits] [llvm/llvm-project] 705271: [PowerPC] Expand constrained ppc_fp128 to i32 conv...

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Fri Sep 4 22:42:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 705271d9cd0e981b2df41cf2802880dcd5925281
      https://github.com/llvm/llvm-project/commit/705271d9cd0e981b2df41cf2802880dcd5925281
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2020-09-05 (Sat, 05 Sep 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCISelLowering.h
    M llvm/lib/Target/PowerPC/PPCInstrInfo.td
    M llvm/test/CodeGen/PowerPC/fp-strict-conv-f128.ll
    M llvm/test/CodeGen/PowerPC/ppcf128-constrained-fp-intrinsics.ll

  Log Message:
  -----------
  [PowerPC] Expand constrained ppc_fp128 to i32 conversion

Libcall __gcc_qtou is not available, which breaks some tests needing
it. On PowerPC, we have code to manually expand the operation, this
patch applies it to constrained conversion. To keep it strict-safe,
it's using the algorithm similar to expandFP_TO_UINT.

For constrained operations marking FP exception behavior as 'ignore',
we should set the NoFPExcept flag. However, in some custom lowering
the flag is missed. This should be fixed by future patches.

Reviewed By: uweigand

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




More information about the All-commits mailing list