Re: [PATCH] Modify simplify_truncation to handle extended CONST_INT.

2019-10-10 Thread Jim Wilson
On Thu, Oct 10, 2019 at 1:46 AM Richard Sandiford wrote: > subst tries to avoid creating invalid (zero_extend:DI (const_int N)): > > else if (CONST_SCALAR_INT_P (new_rtx) >&& (GET_CODE (x) == ZERO_EXTEND >|| GET_CODE (x) == FLOAT >

Re: [PATCH] Modify simplify_truncation to handle extended CONST_INT.

2019-10-10 Thread Richard Sandiford
Jim Wilson writes: > This addresses PR 91860 which has four testcases triggering internal errors. > The problem here is that in combine when handling debug insns, we are trying > to substitute > (sign_extend:DI (const_int 8160 [0x1fe0])) > as the value for > (reg:DI 78 [ _9 ]) > in the debug insn