]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Use force_lowpart_subreg in a BFI splitter [PR119133]
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 7 Mar 2025 10:18:35 +0000 (10:18 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 7 Mar 2025 10:18:35 +0000 (10:18 +0000)
commit5ae621e2e86c00d1fb13ef6839d0c3bace762ac8
tree372afd78fbed6ce7b4a2a5236d5e10c7a7d2714a
parent95e23e74ccb1fe7decf916c12e74486b692372cd
aarch64: Use force_lowpart_subreg in a BFI splitter [PR119133]

lowpart_subreg ICEs are the gift that keeps giving.  This is another
case where we need to use force_lowpart_subreg instead, to handle
cases where the input is already a subreg and where the combined
subreg is not allowed as a single operation.

We don't need to check can_create_pseudo_p since the input should
be a hard register rather than a subreg if !can_create_pseudo_p.

gcc/
PR target/119133
* config/aarch64/aarch64.md
(*aarch64_bfi<GPI:mode><ALLX:mode>_<SUBDI_BITS>): Use
force_lowpart_subreg.

gcc/testsuite/
PR target/119133
* gcc.dg/torture/pr119133.c: New test.
gcc/config/aarch64/aarch64.md
gcc/testsuite/gcc.dg/torture/pr119133.c [new file with mode: 0644]