[all-commits] [llvm/llvm-project] 9654cf: [PowerPC] Fix materialization of SP float values o...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Mon Jul 26 17:43:24 PDT 2021


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

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCInstrInfo.td
    M llvm/test/CodeGen/PowerPC/constant-pool.ll
    M llvm/test/CodeGen/PowerPC/p10-splatImm-CPload-pcrel.ll

  Log Message:
  -----------
  [PowerPC] Fix materialization of SP float values on Power10

All floating point values in registers are in double precision
representation. In order to materialize the correct single precision
value, we need to convert the APFloat that represents the value
to double precision first.

Reviewed By: amyk, NeHuang

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




More information about the All-commits mailing list