RE: [PATCH] aarch64: Specify that FEAT_MOPS sequences clobber CC

2022-12-06 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Kyrylo Tkachov > Sent: Wednesday, November 30, 2022 5:40 PM > To: gcc-patches@gcc.gnu.org > Subject: [PATCH] aarch64: Specify that FEAT_MOPS sequences clobber CC > > Hi all, > > According to the architecture pseudocode the FEAT

[PATCH] aarch64: Specify that FEAT_MOPS sequences clobber CC

2022-11-30 Thread Kyrylo Tkachov via Gcc-patches
Hi all, According to the architecture pseudocode the FEAT_MOPS sequences overwrite the NZCV flags as part of their operation, so GCC needs to model that in the relevant RTL patterns. For the testcase: void g(); void foo (int a, size_t N, char *__restrict__ in, char *__restrict__ out) {