[PATCH] D114088: [PowerPC] Add BCD add/sub/cmp builtins

Nemanja Ivanovic via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 17 06:58:52 PST 2021


nemanjai created this revision.
nemanjai added reviewers: bmahjour, PowerPC.
Herald added subscribers: shchenz, kbarton, hiraditya.
nemanjai requested review of this revision.
Herald added projects: clang, LLVM.

Support for builtins that use `bcdadd./bcdsub.` to add/subtract Binary Coded Decimal values as well as to determine validity and compare BCD values.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114088

Files:
  clang/include/clang/Basic/BuiltinsPPC.def
  clang/lib/Headers/altivec.h
  clang/test/CodeGen/builtins-ppc-p8vector.c
  llvm/include/llvm/IR/IntrinsicsPowerPC.td
  llvm/lib/Target/PowerPC/P10InstrResources.td
  llvm/lib/Target/PowerPC/P9InstrResources.td
  llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  llvm/lib/Target/PowerPC/PPCInstrAltivec.td
  llvm/test/CodeGen/PowerPC/bcd-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114088.387933.patch
Type: text/x-patch
Size: 22225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211117/a6a43ec4/attachment-0001.bin>


More information about the cfe-commits mailing list