]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Fix wrong code with st64b builtin [PR110100]
authorAlex Coplan <alex.coplan@arm.com>
Tue, 6 Jun 2023 10:52:19 +0000 (11:52 +0100)
committerAlex Coplan <alex.coplan@arm.com>
Wed, 7 Jun 2023 16:42:42 +0000 (17:42 +0100)
commit737a0b749a7bc3e7cb904ea2d4b18dc130514b85
treead30eadab698e4cc41f354daf8d414640139b943
parent713613541254039a34e1dd8fd4a613a299af1fd6
aarch64: Fix wrong code with st64b builtin [PR110100]

The st64b pattern incorrectly had an output constraint on the register
operand containing the destination address for the store, leading to
wrong code. This patch fixes that.

gcc/ChangeLog:

PR target/110100
* config/aarch64/aarch64-builtins.cc (aarch64_expand_builtin_ls64):
Use input operand for the destination address.
* config/aarch64/aarch64.md (st64b): Fix constraint on address
operand.

gcc/testsuite/ChangeLog:

PR target/110100
* gcc.target/aarch64/acle/pr110100.c: New test.
gcc/config/aarch64/aarch64-builtins.cc
gcc/config/aarch64/aarch64.md
gcc/testsuite/gcc.target/aarch64/acle/pr110100.c [new file with mode: 0644]