[all-commits] [llvm/llvm-project] 54e570: [PowerPC] Do not emit XXSPLTI32DX for sub 64-bit c...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Thu Jan 28 02:17:23 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 54e570d94af995ff58287a8288389641910a8239
      https://github.com/llvm/llvm-project/commit/54e570d94af995ff58287a8288389641910a8239
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/test/CodeGen/PowerPC/p10-splatImm32.ll

  Log Message:
  -----------
  [PowerPC] Do not emit XXSPLTI32DX for sub 64-bit constants

If the APInt returned by BuildVectorSDNode::isConstantSplat() is narrower than
64 bits, the result produced by XXSPLTI32DX is incorrect. The result returned
by the function appears to be incorrect and we'll investigate/fix it in a
follow-up commit. However, since this causes miscompiles, we must
temporarily disable emitting this instruction for such values.




More information about the All-commits mailing list