[PATCH] D33236: [PowerPC] Implement vec_xxsldwi builtin.

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 18 06:53:00 PDT 2017


nemanjai added a comment.

LGTM other than the test case.



================
Comment at: test/CodeGen/builtins-ppc-error.c:35
+  vec_xxsldwi(vsi, vsi, index); //expected-error {{argument 3 to '__builtin_vsx_xxsldwi' must be a 2-bit unsigned literal (i.e. 0,1,2 or 3)}}
+  vec_xxsldwi(vsi, vuc, 2); //expected-error {{first two arguments to '__builtin_vsx_xxsldwi' must have the same type}}
+}
----------------
Test for non-vector arguments.


https://reviews.llvm.org/D33236





More information about the llvm-commits mailing list