Re: [PATCH] LoongArch: Prevent subreg of subreg in CRC

2025-07-03 Thread Lulu Cheng
在 2025/7/4 上午11:14, Xi Ruoyao 写道: 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:

Re: [PATCH] LoongArch: Prevent subreg of subreg in CRC

2025-07-03 Thread Lulu Cheng
在 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

Re: [PATCH] LoongArch: Prevent subreg of subreg in CRC

2025-07-03 Thread 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 th

Re: [PATCH] LoongArch: Prevent subreg of subreg in CRC

2025-07-03 Thread Xi Ruoyao
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

Re: [PATCH] LoongArch: Prevent subreg of subreg in CRC

2025-07-03 Thread Lulu Cheng
在 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/tests

[PATCH] LoongArch: Prevent subreg of subreg in CRC

2025-07-02 Thread 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-tortu