Re: [PATCH 1/3] expr: Allow scalar_int_mode target mode when converting a constant

2020-07-24 Thread Richard Sandiford
Jozef Lawrynowicz writes: > On Wed, Jul 22, 2020 at 09:33:47AM +0100, Richard Sandiford wrote: >> Jozef Lawrynowicz writes: >> > is_int_mode does not allow MODE_PARTIAL_INT modes, so convert_modes was >> > not allowing a constant value to be converted to a MODE_PARTIAL_INT for >> > use as operand

Re: [PATCH 1/3] expr: Allow scalar_int_mode target mode when converting a constant

2020-07-22 Thread Jozef Lawrynowicz
On Wed, Jul 22, 2020 at 09:33:47AM +0100, Richard Sandiford wrote: > Jozef Lawrynowicz writes: > > is_int_mode does not allow MODE_PARTIAL_INT modes, so convert_modes was > > not allowing a constant value to be converted to a MODE_PARTIAL_INT for > > use as operand 2 in patterns such as ashlpsi3.

Re: [PATCH 1/3] expr: Allow scalar_int_mode target mode when converting a constant

2020-07-22 Thread Richard Sandiford
Jozef Lawrynowicz writes: > is_int_mode does not allow MODE_PARTIAL_INT modes, so convert_modes was > not allowing a constant value to be converted to a MODE_PARTIAL_INT for > use as operand 2 in patterns such as ashlpsi3. The constant had > to be copied into a register before it could be used, bu