Re: [PATCH] aarch64: Fix up 2 other combine opt regressions vs. GCC8 [PR100075]

2021-04-15 Thread Jakub Jelinek via Gcc-patches
On Thu, Apr 15, 2021 at 07:11:11PM +0100, Richard Sandiford wrote: > Jakub Jelinek writes: > > --- gcc/config/aarch64/aarch64.md.jj2021-04-15 10:45:02.798853095 > > +0200 > > +++ gcc/config/aarch64/aarch64.md 2021-04-15 13:28:04.734754364 +0200 > > @@ -3572,6 +3572,18 @@ (define_insn "*

Re: [PATCH] aarch64: Fix up 2 other combine opt regressions vs. GCC8 [PR100075]

2021-04-15 Thread Richard Sandiford via Gcc-patches
Jakub Jelinek writes: > --- gcc/config/aarch64/aarch64.md.jj 2021-04-15 10:45:02.798853095 +0200 > +++ gcc/config/aarch64/aarch64.md 2021-04-15 13:28:04.734754364 +0200 > @@ -3572,6 +3572,18 @@ (define_insn "*neg__si2_uxtw" >[(set_attr "autodetect_type" "alu_shift__op2")] > ) > > +(def

[PATCH] aarch64: Fix up 2 other combine opt regressions vs. GCC8 [PR100075]

2021-04-15 Thread Jakub Jelinek via Gcc-patches
Hi! The testcase used to be compiled at -O2 by GCC8 and earlier to: f1: neg w1, w0, asr 16 and w1, w1, 65535 orr w0, w1, w0, lsl 16 ret f2: neg w1, w0 extrw0, w1, w0, 16 ret but since GCC9 (r9-3594 for f1 and r9-6926 for f