Re: [x86 PATCH] PR rtl-optimization/96692: ((A|B)^C)^A using andn with -mbmi.

2022-07-04 Thread Uros Bizjak via Gcc-patches
t; > gcc/testsuite/ChangeLog > PR rtl-optimization/96692 > * gcc.target/i386/bmi-andn-4.c: New test case. OK. Thanks, Uros. > > Thanks again, > Roger > -- > > > -Original Message- > > From: Uros Bizjak > > Sent: 26 June 2022 18:08 > > To: Roger

RE: [x86 PATCH] PR rtl-optimization/96692: ((A|B)^C)^A using andn with -mbmi.

2022-07-04 Thread Roger Sayle
Message- > From: Uros Bizjak > Sent: 26 June 2022 18:08 > To: Roger Sayle > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [x86 PATCH] PR rtl-optimization/96692: ((A|B)^C)^A using andn > with > -mbmi. > > On Sun, Jun 26, 2022 at 2:04 PM Roger Sayle > wrote: &g

Re: [x86 PATCH] PR rtl-optimization/96692: ((A|B)^C)^A using andn with -mbmi.

2022-06-27 Thread Segher Boessenkool
Hi! On Sun, Jun 26, 2022 at 07:07:35PM +0200, Uros Bizjak via Gcc-patches wrote: > On Sun, Jun 26, 2022 at 2:04 PM Roger Sayle > wrote: > > I'll investigate whether this optimization can also be implemented > > more generically in simplify_rtx when the backend provides > > accurate rtx_costs for

Re: [x86 PATCH] PR rtl-optimization/96692: ((A|B)^C)^A using andn with -mbmi.

2022-06-26 Thread Uros Bizjak via Gcc-patches
On Sun, Jun 26, 2022 at 2:04 PM Roger Sayle wrote: > > > This patch addresses PR rtl-optimization/96692 on x86_64, by providing > a define_split for combine to convert the three operation ((A|B)^C)^D > into a two operation sequence using andn when either A or B is the same > register as C or D. T