[PATCH] D106530: [PowerPC] Change altivec indexed load/store builtins argument type

Qiu Chaofan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 22 02:07:02 PDT 2021


qiucf created this revision.
qiucf added reviewers: jsji, nemanjai, shchenz, anhtuyen, PowerPC.
Herald added subscribers: arphaman, kbarton.
qiucf requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This patch changes the index argument of `lvxl?/lve[bhw]x/stvxl?/stve[bhw]x` builtins from `int` to `long`. Because on 64-bit subtargets, an extra `extsw` will always been generated, which is incorrect.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106530

Files:
  clang/include/clang/Basic/BuiltinsPPC.def
  clang/lib/Headers/altivec.h
  clang/test/CodeGen/ppc-emmintrin.c
  clang/test/CodeGen/ppc-xmmintrin.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106530.360733.patch
Type: text/x-patch
Size: 49421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210722/cc532630/attachment-0001.bin>


More information about the cfe-commits mailing list