RE: [Patch][GCC][middle-end] - Lower store and load neon builtins to gimple

2021-09-27 Thread Jirui Wu via Gcc-patches
Hi all, I now use the type based on the specification of the intrinsic instead of type based on formal argument. I use signed Int vector types because the outputs of the neon builtins that I am lowering is always signed. In addition, fcode and stmt does not have information on whether the result

FW: [PING] Re: [Patch][GCC][middle-end] - Generate FRINTZ for (double)(int) under -ffast-math on aarch64

2021-09-24 Thread Jirui Wu via Gcc-patches
; > gcc/testsuite/ChangeLog: > > > > * gcc.target/aarch64/merge_trunc1.c: New test. > > > > > -Original Message- > > > From: Richard Biener > > > Sent: Tuesday, August 17, 2021 9:13 AM > > > To: Andrew Pinski > > >

[Patch][GCC][middle-end] - Lower store and load neon builtins to gimple

2021-09-16 Thread Jirui Wu via Gcc-patches
Hi all, This patch lowers the vld1 and vst1 variants of the store and load neon builtins functions to gimple. The changes in this patch covers: * Replaces calls to the vld1 and vst1 variants of the builtins * Uses MEM_REF gimple assignments to generate better code * Updates test cases to prevent

[PING] Re: [Patch][GCC][middle-end] - Generate FRINTZ for (double)(int) under -ffast-math on aarch64

2021-09-10 Thread Jirui Wu via Gcc-patches
RUNC. > > > > gcc/testsuite/ChangeLog: > > > > * gcc.target/aarch64/merge_trunc1.c: New test. > > > > > -Original Message- > > > From: Richard Biener > > > Sent: Tuesday, August 17, 2021 9:13 AM > > > To: Andrew Pinski

RE: [Patch][GCC][middle-end] - Generate FRINTZ for (double)(int) under -ffast-math on aarch64

2021-09-03 Thread Jirui Wu via Gcc-patches
d Biener > > > Sent: Tuesday, August 17, 2021 9:13 AM > > > To: Andrew Pinski > > > Cc: Jirui Wu ; Richard Sandiford > > > ; i...@airs.com; > > > gcc-patches@gcc.gnu.org; rguent...@suse.de > > > Subject: Re: [Patch][GCC][middle-end] - Generate

RE: [Patch][GCC][middle-end] - Generate FRINTZ for (double)(int) under -ffast-math on aarch64

2021-08-20 Thread Jirui Wu via Gcc-patches
gt; * match.pd: Generate IFN_TRUNC. > > > > gcc/testsuite/ChangeLog: > > > > * gcc.target/aarch64/merge_trunc1.c: New test. > > > > > -Original Message- > > > From: Richard Biener > > > Sent: Tuesday, August 17, 20

RE: [Patch][GCC][middle-end] - Generate FRINTZ for (double)(int) under -ffast-math on aarch64

2021-08-19 Thread Jirui Wu via Gcc-patches
: > > > > On Mon, Aug 16, 2021 at 9:15 AM Jirui Wu via Gcc-patches > > wrote: > > > > > > Hi all, > > > > > > This patch generates FRINTZ instruction to optimize type casts. > > > > > > The changes in this patch covers: > &g

[Patch][GCC][middle-end] - Generate FRINTZ for (double)(int) under -ffast-math on aarch64

2021-08-16 Thread Jirui Wu via Gcc-patches
Hi all, This patch generates FRINTZ instruction to optimize type casts. The changes in this patch covers: * Opimization of a FIX_TRUNC_EXPR cast inside a FLOAT_EXPR using IFN_TRUNC. * Change of corresponding test cases. Regtested on aarch64-none-linux-gnu and no issues. Ok for master? If OK can