Re: [AArch64] Generalise aarch64_simd_valid_immediate for SVE

2018-02-01 Thread James Greenhalgh
On Fri, Jan 26, 2018 at 01:47:48PM +, Richard Sandiford wrote: > The current aarch64_simd_valid_immediate code predates the move > to the new CONST_VECTOR representation, so for variable-length SVE > it only handles duplicates of single elements, rather than duplicates > of repeating patterns.

[AArch64] Generalise aarch64_simd_valid_immediate for SVE

2018-01-26 Thread Richard Sandiford
The current aarch64_simd_valid_immediate code predates the move to the new CONST_VECTOR representation, so for variable-length SVE it only handles duplicates of single elements, rather than duplicates of repeating patterns. This patch removes the restriction. It means that the validity of a dupli