[PATCH] D82726: [PowerPC][Power10] Implement Vector Count Mask Bits builtins in LLVM/Clang

Amy Kwan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 28 12:55:37 PDT 2020


amyk created this revision.
amyk added reviewers: PowerPC, power-llvm-team, kamaub, stefanp.
amyk added projects: LLVM, clang.
Herald added subscribers: shchenz, hiraditya, nemanjai.

This patch adds the following function prototypes:

  unsigned long long vec_cntm (vector unsigned char a, const unsigned char mp);
  unsigned long long vec_cntm (vector unsigned short a, const unsigned char mp);
  unsigned long long vec_cntm (vector unsigned int a, const unsigned char mp);
  unsigned long long vec_cntm (vector unsigned long long a, const unsigned char mp);

Depends on D82675 <https://reviews.llvm.org/D82675>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82726

Files:
  clang/include/clang/Basic/BuiltinsPPC.def
  clang/lib/Headers/altivec.h
  clang/test/CodeGen/builtins-ppc-p10vector.c
  llvm/include/llvm/IR/IntrinsicsPowerPC.td
  llvm/lib/Target/PowerPC/PPCInstrPrefix.td
  llvm/test/CodeGen/PowerPC/p10-vector-mask-ops.ll
  llvm/test/MC/Disassembler/PowerPC/p10insts.txt
  llvm/test/MC/PowerPC/p10.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82726.273967.patch
Type: text/x-patch
Size: 11000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200628/78841be3/attachment-0001.bin>


More information about the cfe-commits mailing list