[SystemZ] Fix vecintrin.h to not emit alignment hints in vec_xl/vec_xst.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 10 Feb 2021 00:30:05 +0000 (18:30 -0600)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Sat, 13 Feb 2021 00:26:36 +0000 (18:26 -0600)
commitb3ac5b84cdd46fc62a7215ae6b11f3c005900461
tree2827add046dc9e3bf3749820a3b72166be2a833b
parent188b0747c1664d962e94f00b5e3caac529fa1e26
[SystemZ] Fix vecintrin.h to not emit alignment hints in vec_xl/vec_xst.

vec_xl() and vec_xst() should not emit alignment hints since they take a
scalar pointer and also add a byte offset if passed.

This patch uses memcpy to achieve the desired result.

Review: Ulrich Weigand

Differential Revision: https://reviews.llvm.org/D96471
clang/lib/Headers/vecintrin.h
clang/test/CodeGen/SystemZ/builtins-systemz-zvector-constrained.c