[PATCH] D109710: [PowerPC] Add range checks for P10 Vector Builtins

Lei Huang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 23 06:44:08 PDT 2021


lei accepted this revision as: lei.
lei added a comment.
This revision is now accepted and ready to land.

LGTM
Please add comment to tc upon commit.



================
Comment at: clang/test/CodeGen/builtins-ppc-p10vector.c:1417
 
+vector signed int test_vec_vec_splati_ins_range(void) {
+  // CHECK-BE: [[T0:%.+]] = and i32 %{{.+}}, 1
----------------
nit: pleases add a comment here explaining behaviour for when param 2 is out of expected value range.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109710/new/

https://reviews.llvm.org/D109710



More information about the cfe-commits mailing list