[PATCH] D33940: [Power9] Added support for the modsw, moduw, modsd, modud hardware instructions that are new to P9.

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 06:59:55 PDT 2017


stefanp created this revision.

Note that if we need the result of both the divide and the modulo then we compute the modulo based on the result of the divide and not using the new hardware instruction.


https://reviews.llvm.org/D33940

Files:
  lib/Target/PowerPC/PPCISelLowering.cpp
  lib/Target/PowerPC/PPCISelLowering.h
  lib/Target/PowerPC/PPCInstr64Bit.td
  lib/Target/PowerPC/PPCInstrInfo.td
  test/CodeGen/PowerPC/ppc64-P9-mod.ll
  test/MC/Disassembler/PowerPC/ppc64-encoding.txt
  test/MC/Disassembler/PowerPC/ppc64le-encoding.txt
  test/MC/PowerPC/ppc64-encoding.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33940.101556.patch
Type: text/x-patch
Size: 14566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170606/7062f8a6/attachment.bin>


More information about the llvm-commits mailing list