[PATCH] D49424: [PowerPC] Handle __builtin_xxpermdi the same way as GCC does

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 17 11:42:22 PDT 2018


efriedma added inline comments.


================
Comment at: lib/CodeGen/CGBuiltin.cpp:10780
     // endian order so the shuffle mask must be adjusted for this on little
     // endian platforms (i.e. index is complemented and source vector reversed).
+    unsigned ElemIdx0 = (Index & 2) >> 1;;
----------------
Please fix the comment.


Repository:
  rC Clang

https://reviews.llvm.org/D49424





More information about the cfe-commits mailing list