]> gcc.gnu.org Git - gcc.git/commit
arm: [MVE intrinsics] Fix support for loads [PR target/114323]
authorChristophe Lyon <christophe.lyon@linaro.org>
Fri, 15 Mar 2024 19:55:43 +0000 (19:55 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Tue, 19 Mar 2024 08:19:08 +0000 (08:19 +0000)
commit167ec6df7fd8deb67759acd5dbe72c1982a55873
treefc0a0c965daae20f91b396f8823913d072d62764
parenta185d8aeeed7a25a01505565aa61ccf8a876c6ff
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.lyon@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.
gcc/config/arm/arm-mve-builtins.cc
gcc/testsuite/gcc.target/arm/mve/pr114323.c [new file with mode: 0644]
This page took 0.066064 seconds and 6 git commands to generate.