> -----Original Message----- > From: Uros Bizjak <ubiz...@gmail.com> > Sent: Wednesday, May 15, 2024 4:15 PM > To: Kong, Lingling <lingling.k...@intel.com> > Cc: gcc-patches@gcc.gnu.org; Liu, Hongtao <hongtao....@intel.com>; Wang, > Hongyu <hongyu.w...@intel.com> > Subject: Re: [PATCH 1/8] [APX NF]: Support APX NF add > > On Wed, May 15, 2024 at 9:43 AM Kong, Lingling <lingling.k...@intel.com> > wrote: > > > > From: Hongyu Wang <hongyu.w...@intel.com> > > > > APX NF(no flags) feature implements suppresses the update of status flags > > for > arithmetic operations. > > > > For NF add, it is not clear whether NF add can be faster than lea. If so, > > the > pattern needs to be adjusted to prefer LEA generation. > > > diff --git a/gcc/testsuite/gcc.target/i386/apx-ndd.c > > b/gcc/testsuite/gcc.target/i386/apx-ndd.c > > index 0eb751ad225..0ff4df0780c 100644 > > --- a/gcc/testsuite/gcc.target/i386/apx-ndd.c > > +++ b/gcc/testsuite/gcc.target/i386/apx-ndd.c > > @@ -1,5 +1,5 @@ > > /* { dg-do compile { target { ! ia32 } } } */ > > -/* { dg-options "-mapxf -march=x86-64 -O2" } */ > > +/* { dg-options "-mapx-features=egpr,push2pop2,ndd,ppx -march=x86-64 > > +-O2" } */ > > Please do not split options to a separate line; here and in other places. > > Uros.
Sorry, my send-email adjusted some formatting incorrectly, I added attachments. Thanks, Lingling
0004-APX-NF-Support-APX-NF-for-right-shift-insns.patch
Description: 0004-APX-NF-Support-APX-NF-for-right-shift-insns.patch
0005-APX-NF-Support-APX-NF-for-rotate-insns.patch
Description: 0005-APX-NF-Support-APX-NF-for-rotate-insns.patch
0006-APX-NF-Support-APX-NF-for-shld-shrd.patch
Description: 0006-APX-NF-Support-APX-NF-for-shld-shrd.patch
0007-APX-NF-Support-APX-NF-for-mul-div.patch
Description: 0007-APX-NF-Support-APX-NF-for-mul-div.patch
0008-APX-NF-Support-APX-NF-for-lzcnt-tzcnt-popcnt.patch
Description: 0008-APX-NF-Support-APX-NF-for-lzcnt-tzcnt-popcnt.patch
0001-APX-NF-Support-APX-NF-add.patch
Description: 0001-APX-NF-Support-APX-NF-add.patch
0002-APX-NF-Support-APX-NF-for-sub-and-or-xor-neg.patch
Description: 0002-APX-NF-Support-APX-NF-for-sub-and-or-xor-neg.patch
0003-APX-NF-Support-APX-NF-for-left-shift-insns.patch
Description: 0003-APX-NF-Support-APX-NF-for-left-shift-insns.patch