Re: [PATCH] internal-fn: Reuse SUBREG_PROMOTED_VAR_P handling

2024-07-10 Thread Jeff Law
On 7/10/24 10:48 AM, Richard Sandiford wrote: Thanks for the review. Jeff Law writes: On 7/10/24 9:44 AM, Richard Sandiford wrote: expand_fn_using_insn has code to handle SUBREG_PROMOTED_VAR_P destinations. Specifically, for: (subreg/v:M1 (reg:M2 R) ...) it creates a new temporary r

Re: [PATCH] internal-fn: Reuse SUBREG_PROMOTED_VAR_P handling

2024-07-10 Thread Richard Sandiford
Thanks for the review. Jeff Law writes: > On 7/10/24 9:44 AM, Richard Sandiford wrote: >> expand_fn_using_insn has code to handle SUBREG_PROMOTED_VAR_P >> destinations. Specifically, for: >> >>(subreg/v:M1 (reg:M2 R) ...) >> >> it creates a new temporary register T, uses it for the output

Re: [PATCH] internal-fn: Reuse SUBREG_PROMOTED_VAR_P handling

2024-07-10 Thread Jeff Law
On 7/10/24 9:44 AM, Richard Sandiford wrote: expand_fn_using_insn has code to handle SUBREG_PROMOTED_VAR_P destinations. Specifically, for: (subreg/v:M1 (reg:M2 R) ...) it creates a new temporary register T, uses it for the output operand, then sign- or zero-extends the M1 lowpart of T t

[PATCH] internal-fn: Reuse SUBREG_PROMOTED_VAR_P handling

2024-07-10 Thread Richard Sandiford
expand_fn_using_insn has code to handle SUBREG_PROMOTED_VAR_P destinations. Specifically, for: (subreg/v:M1 (reg:M2 R) ...) it creates a new temporary register T, uses it for the output operand, then sign- or zero-extends the M1 lowpart of T to M2, storing the result in R. This patch splits t