Re: [05/nn] [AArch64] Rewrite aarch64_simd_valid_immediate

2017-11-10 Thread James Greenhalgh
On Fri, Oct 27, 2017 at 02:27:08PM +0100, Richard Sandiford wrote: > This patch reworks aarch64_simd_valid_immediate so that > it's easier to add SVE support. The main changes are: > > - make simd_immediate_info easier to construct > - replace the while (1) { ... break; } blocks with checks that

[05/nn] [AArch64] Rewrite aarch64_simd_valid_immediate

2017-10-27 Thread Richard Sandiford
This patch reworks aarch64_simd_valid_immediate so that it's easier to add SVE support. The main changes are: - make simd_immediate_info easier to construct - replace the while (1) { ... break; } blocks with checks that use the full 64-bit value of the constant - treat floating-point modes as i