Re: [PATCH] RISC-V: xtheadmemidx: Fix RV32 ICE because of unexpected subreg

2024-07-30 Thread Jeff Law
On 7/30/24 10:17 AM, Christoph Müllner wrote: As documented in PR116131, we might end up with the following INSN for rv32i_xtheadmemidx after th_memidx_I_c is applied: (insn 18 14 0 2 (set (mem:SI (plus:SI (reg/f:SI 141) (ashift:SI (subreg:SI (reg:DI 134 [ a.0_1 ]) 0)

[PATCH] RISC-V: xtheadmemidx: Fix RV32 ICE because of unexpected subreg

2024-07-30 Thread Christoph Müllner
As documented in PR116131, we might end up with the following INSN for rv32i_xtheadmemidx after th_memidx_I_c is applied: (insn 18 14 0 2 (set (mem:SI (plus:SI (reg/f:SI 141) (ashift:SI (subreg:SI (reg:DI 134 [ a.0_1 ]) 0) (const_int 2 [0x2]))) [0 S4 A32])