[PATCH] D148597: [PowerPC] Implement DFP add and sub instructions.

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 17 18:42:14 PDT 2023


stefanp created this revision.
Herald added subscribers: steven.zhang, shchenz, kbarton, hiraditya, nemanjai.
Herald added a project: All.
stefanp requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add the following Decimal Floating Point (DFP) instructions for PowerPC.
dadd, daddq, dsub, dsubq

In order to add these instructions a new register class for a pair
of floating point registers is added.

This patch is only to allow the user to specify the instructions in
assembly. There is no scheduling or patterns for the instructions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148597

Files:
  llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
  llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h
  llvm/lib/Target/PowerPC/PPCInstrDFP.td
  llvm/lib/Target/PowerPC/PPCInstrInfo.td
  llvm/lib/Target/PowerPC/PPCRegisterInfo.h
  llvm/lib/Target/PowerPC/PPCRegisterInfo.td
  llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-dfp.txt
  llvm/test/MC/PowerPC/ppc64-encoding-dfp.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148597.514495.patch
Type: text/x-patch
Size: 10858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230418/e24818ed/attachment.bin>


More information about the llvm-commits mailing list