[PATCH] D88278: [PowerPC] Add builtins for xvtdiv(dp|sp) and xvtsqrt(dp|sp).

EsmeYi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 24 22:41:17 PDT 2020


Esme created this revision.
Esme added reviewers: steven.zhang, masoud.ataei, shchenz, jsji, qiucf.
Herald added subscribers: llvm-commits, cfe-commits, kbarton, hiraditya, nemanjai.
Herald added projects: clang, LLVM.
Esme requested review of this revision.

This patch implements the builtins for `xvtdivdp, xvtdivsp, xvtsqrtdp, xvtsqrtsp`.
The instructions correspond to the following builtins:

  int vec_test_swdiv(vector double v1, vector double v2);
  int vec_test_swdivs(vector float v1, vector float v2);
  int vec_test_swsqrt(vector double v1, vector double v2);
  int vec_test_swsqrts(vector float v1, vector float v2);

This patch depends on D88274 <https://reviews.llvm.org/D88274>, which fixes the bug in copying from CRRC to GRC.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88278

Files:
  clang/include/clang/Basic/BuiltinsPPC.def
  clang/lib/Headers/altivec.h
  clang/test/CodeGen/builtins-ppc-vsx.c
  llvm/include/llvm/IR/IntrinsicsPowerPC.td
  llvm/lib/Target/PowerPC/PPCInstrVSX.td
  llvm/test/CodeGen/PowerPC/vsx_builtins.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88278.294229.patch
Type: text/x-patch
Size: 7071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200925/1e848a63/attachment.bin>


More information about the cfe-commits mailing list