https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114676
--- Comment #20 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Andreas Krebbel <kreb...@gcc.gnu.org>: https://gcc.gnu.org/g:9cd936038de231b5541ae150ef2d815fec28015a commit r12-11115-g9cd936038de231b5541ae150ef2d815fec28015a Author: Andreas Krebbel <kreb...@linux.ibm.com> Date: Tue Apr 23 10:05:46 2024 +0200 s390x: Fix vec_xl/vec_xst type aliasing [PR114676] The requirements of the vec_xl/vec_xst intrinsincs wrt aliasing of the pointer argument are not really documented. As it turns out, users are likely to get it wrong. With this patch we let the pointer argument alias everything in order to make it more robust for users. gcc/ChangeLog: PR target/114676 * config/s390/s390-c.cc (s390_expand_overloaded_builtin): Use a MEM_REF with an addend of type ptr_type_node. gcc/testsuite/ChangeLog: PR target/114676 * gcc.target/s390/zvector/pr114676.c: New test. Suggested-by: Jakub Jelinek <ja...@redhat.com> (cherry picked from commit 42189f21b22c43ac8ab46edf5f6a7b4d99bc86a5)