Re: [PATCH] [GCC] match.pd: Simplify rule for bitwise not with casts

2023-11-29 Thread Richard Biener
On Tue, Nov 28, 2023 at 7:56 PM Andrew Pinski wrote: > > On Tue, Nov 28, 2023 at 7:38 AM wrote: > > > > From: Ezra Sitorus > > > > Add the transform rule (T)(~A) -> ~(T)(A) for view_convert. The simplified > > result could be a single assembly instruction when chained with other > > instructio

Re: [PATCH] [GCC] match.pd: Simplify rule for bitwise not with casts

2023-11-28 Thread Andrew Pinski
On Tue, Nov 28, 2023 at 7:38 AM wrote: > > From: Ezra Sitorus > > Add the transform rule (T)(~A) -> ~(T)(A) for view_convert. The simplified > result could be a single assembly instruction when chained with other > instructions. > > gcc/ChangeLog: > * match.pd: Add new transform rule. >

[PATCH] [GCC] match.pd: Simplify rule for bitwise not with casts

2023-11-28 Thread Ezra.Sitorus
From: Ezra Sitorus Add the transform rule (T)(~A) -> ~(T)(A) for view_convert. The simplified result could be a single assembly instruction when chained with other instructions. gcc/ChangeLog: * match.pd: Add new transform rule. * testsuite/gcc.target/aarch64/advsimd-intrinsic