]> git.ipfire.org Git - people/ms/gcc.git/commit
aarch64: Fix up bfmlal lane pattern [PR104921]
authorAlex Coplan <alex.coplan@arm.com>
Mon, 6 Feb 2023 14:32:21 +0000 (14:32 +0000)
committerAlex Coplan <alex.coplan@arm.com>
Mon, 20 Feb 2023 09:18:41 +0000 (09:18 +0000)
commit5b99b0f1ee65ad50b5e6d3a57aace616273cc814
tree98d7f165bb7ac178f87bc00bc19564918ff41d79
parentc6e3ecca0e3dcf567d0c843a4987e52591041372
aarch64: Fix up bfmlal lane pattern [PR104921]

As the testcase shows, this pattern had an incorrect constraint leading
to GCC's output getting rejected by the assembler.

This patch fixes the constraint accordingly.

The test is split into two: one that can run without bf16 support from
the assembler and another that checks that the output actually assembles
when such support is available.

gcc/ChangeLog:

PR target/104921
* config/aarch64/aarch64-simd.md (aarch64_bfmlal<bt>_lane<q>v4sf):
Use correct constraint for operand 3.

gcc/testsuite/ChangeLog:

PR target/104921
* gcc.target/aarch64/pr104921-1.c: New test.
* gcc.target/aarch64/pr104921-2.c: New test.
* gcc.target/aarch64/pr104921.x: Include file for new tests.

(cherry picked from commit 277e1f30a5e4e634304a7b8a532825119f0ea47f)
gcc/config/aarch64/aarch64-simd.md
gcc/testsuite/gcc.target/aarch64/pr104921-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/pr104921-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/pr104921.x [new file with mode: 0644]