[PATCH] D54087: [PowerPC] [Clang] [AltiVec] The second parameter of vec_sr function should be modulo the number of bits in the element

Zixuan Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 4 19:06:07 PST 2018


wuzish created this revision.
wuzish added reviewers: hfinkel, nemanjai, kbarton.
Herald added a subscriber: jsji.

The second parameter of vec_sr function is representing shift bits and it should be modulo the number of bits in the element like what vec_sl does now.


Repository:
  rC Clang

https://reviews.llvm.org/D54087

Files:
  clang/lib/Headers/altivec.h
  clang/test/CodeGen/builtins-ppc-altivec.c
  clang/test/CodeGen/builtins-ppc-p8vector.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54087.172538.patch
Type: text/x-patch
Size: 11523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181105/2067ec3a/attachment.bin>


More information about the cfe-commits mailing list