]> granicus.if.org Git - clang/commit
[PowerPC] Handle __builtin_xxpermdi the same way as GCC does
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 19 Jul 2018 12:44:15 +0000 (12:44 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 19 Jul 2018 12:44:15 +0000 (12:44 +0000)
commit9647e445b0468f6250492438c639c6cb61373a2b
treeefa43b6852a5b92bac7c8a819a4876b9344dd25b
parente89556485efbb31cc28b37605f5d59790efa8dd1
[PowerPC] Handle __builtin_xxpermdi the same way as GCC does

The codegen for this builtin was initially implemented to match GCC.
However, due to interest from users GCC changed behaviour to account for the
big endian bias of the instruction and correct it. This patch brings the
handling inline with GCC.

Fixes https://bugs.llvm.org/show_bug.cgi?id=38192

Differential Revision: https://reviews.llvm.org/D49424

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337449 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
test/CodeGen/builtins-ppc-vsx.c