RE: [PATCH][GCC][Arm]: MVE: Fix vec extracts to memory

2020-04-07 Thread Kyrylo Tkachov
> -Original Message- > From: Andre Vieira (lists) > Sent: 07 April 2020 15:14 > To: gcc-patches@gcc.gnu.org > Cc: Kyrylo Tkachov > Subject: [PATCH][GCC][Arm]: MVE: Fix vec extracts to memory > > Hi, > > This patch fixes vec extracts to memory that can ar

[PATCH][GCC][Arm]: MVE: Fix vec extracts to memory

2020-04-07 Thread Andre Vieira (lists)
Hi, This patch fixes vec extracts to memory that can arise from code as seen in the testcase added. The patch fixes this by allowing mem operands in the set of mve_vec_extract patterns, which given the only '=r' constraint will lead to the scalar value being written to a register and then sto