在 2025/7/4 上午11:25, Xi Ruoyao 写道:
On Fri, 2025-07-04 at 11:14 +0800, Xi Ruoyao wrote:
On Fri, 2025-07-04 at 09:47 +0800, Lulu Cheng wrote:
在 2025/7/2 下午3:31, Xi Ruoyao 写道:
The register_operand predicate can match subreg, then we'd have a
subreg
of subreg and it's invalid. Use lowpart_subreg to avoid the
nested
subreg.
gcc/ChangeLog:
* config/loongarch/loongarch.md (crc_combine): Avoid
nested
subreg.
gcc/testsuite/ChangeLog:
* gcc.c-torture/compile/pr120708.c: New test.
---
Bootstrapped and regtested on loongarch64-linux-gnu. Ok for trunk
and
releases/gcc-15?
Hi,
I'm OK with this patch.
Will add PR120728 to the subject and ChangeLog then push.
Oops, forgot adding the PR number :(
I didn't notice either.:-[