https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114323
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Christophe Lyon <cl...@gcc.gnu.org>: https://gcc.gnu.org/g:167ec6df7fd8deb67759acd5dbe72c1982a55873 commit r14-9537-g167ec6df7fd8deb67759acd5dbe72c1982a55873 Author: Christophe Lyon <christophe.l...@linaro.org> Date: Fri Mar 15 19:55:43 2024 +0000 arm: [MVE intrinsics] Fix support for loads [PR target/114323] The testcase in this PR shows that we would load from an uninitialized location, because the vld1 instrinsics are reported as "const". This is because function_instance::reads_global_state_p() does not take CP_READ_MEMORY into account. Fixing this gives vld1 the "pure" attribute instead, and solves the problem. 2024-03-15 Christophe Lyon <christophe.l...@linaro.org> PR target/114323 gcc/ * config/arm/arm-mve-builtins.cc (function_instance::reads_global_state_p): Take CP_READ_MEMORY into account. gcc/testsuite/ * gcc.target/arm/mve/pr114323.c: New.