Hi Andre, > -----Original Message----- > From: Andre Vieira (lists) <andre.simoesdiasvie...@arm.com> > Sent: 20 March 2020 08:53 > To: gcc-patches@gcc.gnu.org > Cc: Kyrylo Tkachov <kyrylo.tkac...@arm.com> > Subject: [PATCH][GCC][Arm]: Revert changes to {get, set}_fpscr > > Hi, > > MVE made changes to {get,set}_fpscr to enable the compiler to optimize > unneccesary gets and sets when using these for intrinsics that use and/or > write the carry bit. However, these actually get and set the full FPSCR > register > and are used by fp env intrinsics to modify the fp context. So MVE should > not be using these. > > This fixes regressions for gcc.dg/atomic/c11-atomic-exec-5.c > > Bootstrapped and tested arm-linux-gnueabihf. > > Is this OK for trunk?
Ok. Thanks, Kyrill > > gcc/ChangeLog: > 2020-03-20 Andre Vieira <andre.simoesdiasvie...@arm.com> > > * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Rename this to ... > (VUNSPEC_GET_FPSCR): ... this, and move it to vunspec. > * config/arm/vfp.md: (get_fpscr, set_fpscr): Revert to old patterns.