Re: [PATCH] aarch64: Fix ICE due to aarch64_gen_compare_reg_maybe_ze [PR94435]

2020-04-02 Thread Richard Sandiford
Jakub Jelinek writes: > Hi! > > The following testcase ICEs, because aarch64_gen_compare_reg_maybe_ze emits > invalid RTL. > For y_mode [QH]Imode it expects y to be of that mode (or CONST_INT that fits > into that mode) and x being SImode; for non-CONST_INT y it zero extends y > into SImode and co

[PATCH] aarch64: Fix ICE due to aarch64_gen_compare_reg_maybe_ze [PR94435]

2020-04-01 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs, because aarch64_gen_compare_reg_maybe_ze emits invalid RTL. For y_mode [QH]Imode it expects y to be of that mode (or CONST_INT that fits into that mode) and x being SImode; for non-CONST_INT y it zero extends y into SImode and compares that against x, for CONST_INT