> -----Original Message-----
> From: Andre Vieira (lists) <andre.simoesdiasvie...@arm.com>
> Sent: 07 April 2020 15:14
> To: gcc-patches@gcc.gnu.org
> Cc: Kyrylo Tkachov <kyrylo.tkac...@arm.com>
> Subject: [PATCH][GCC][Arm]: MVE: Fix vec extracts to memory
> 
> 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 stored in memory using scalar store pattern.
> 
> Regression tested on arm-none-eabi.
> 
> Is this OK for trunk?

Ok.
Thanks,
Kyrill

> 
> gcc/ChangeLog:
> 2020-04-07  Andre Vieira  <andre.simoesdiasvie...@arm.com>
> 
>          * config/arm/mve.md (mve_vec_extract*): Allow memory operands
> in set.
> 
> gcc/testsuite/ChangeLog:
> 2020-04-07  Andre Vieira  <andre.simoesdiasvie...@arm.com>
> 
>          * gcc.target/arm/mve/intrinsics/mve_vec_extracts_from_memory.c:
> New test.

Reply via email to