[PATCH] D48712: [X86] Lowering integer truncation intrinsics to native IR

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 28 10:17:22 PDT 2018


craig.topper added inline comments.


================
Comment at: clang/lib/Headers/avx512vlintrin.h:7421
+      __builtin_convertvector((__v4si)__A, __v4qi), (__v4qi){0, 0, 0, 0}, 0, 1,
+      2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7);
 }
----------------
If you need to add more zeroes than the width of the input, can you just repeat the zero vector in order as many times as necessary. It should look more like a concatentation.

so 0, 1, 2, 3, 4, 5, 6, 7, 4, 5, 6, 7, 4, 5, 6, 7


https://reviews.llvm.org/D48712





More information about the cfe-commits mailing list