[all-commits] [llvm/llvm-project] 35a18a: [PowerPC] Implement intrinsics for mtfsf[i]

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Fri Jul 16 14:26:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35a18a981f6b0f67899baec46be0086dc1aad757
      https://github.com/llvm/llvm-project/commit/35a18a981f6b0f67899baec46be0086dc1aad757
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2021-07-16 (Fri, 16 Jul 2021)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/builtins-ppc-xlcompat-math.c
    M llvm/include/llvm/IR/IntrinsicsPowerPC.td
    M llvm/lib/Target/PowerPC/P9InstrResources.td
    M llvm/lib/Target/PowerPC/PPCInstrInfo.td
    M llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-math.ll
    A llvm/test/CodeGen/PowerPC/fpscr-intrinsics.ll

  Log Message:
  -----------
  [PowerPC] Implement intrinsics for mtfsf[i]

This provides intrinsics for emitting instructions that set the FPSCR (`mtfsf/mtfsfi`).

The patch also conservatively marks the rounding mode as an implicit def for both since they both may set the rounding mode depending on the operands.

Reviewed By: #powerpc, qiucf

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




More information about the All-commits mailing list