[AArch64] Make simd_immediate_info INDEX explicit
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 13 Aug 2019 10:18:28 +0000 (10:18 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 13 Aug 2019 10:18:28 +0000 (10:18 +0000)
commit1da83ccee8e7b61e7777abb63eb0e5a0ff1f1e93
tree667f559d9bd961469d7af3e40ed02e2d3790701f
parente37e2bb100135e4d4afa2f4ae6445ac1201f01fa
[AArch64] Make simd_immediate_info INDEX explicit

This patch tweaks the representation of SVE INDEX instructions in
simd_immediate_info so that it's easier to add new types of
constant on top.

2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
INDEX.
(simd_immediate_info::value, simd_immediate_info::step)
(simd_immediate_info::modifier, simd_immediate_info::shift): Replace
with...
(simd_immediate_info::u): ...this new union.
(simd_immediate_info::simd_immediate_info): Update accordingly.
(aarch64_output_simd_mov_immediate): Likewise.
(aarch64_output_sve_mov_immediate): Likewise.

From-SVN: r274371
gcc/ChangeLog
gcc/config/aarch64/aarch64.c