arm: Use E_FOOmode instead of FOOmode in arm_preferred_simd_mode
authorChristophe Lyon <christophe.lyon@linaro.org>
Mon, 12 Oct 2020 13:28:20 +0000 (13:28 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Mon, 12 Oct 2020 13:29:54 +0000 (13:29 +0000)
commit7e7352b2ad089ea68d689f3b79d93e3ee26326f7
tree761affc829c2a2744e71a757a1dc9903204c7a36
parentbd28b730cf35dbeeb2b26aa17397163bbbb0ca9e
arm: Use E_FOOmode instead of FOOmode in arm_preferred_simd_mode

gcc-4.8.5 does not accept case clauses with non-literal type, which
happens for "QImode" as it expands to (scalar_int_mode
((scalar_int_mode::from_int) E_QImode)).

Use E_QImode instead in arm_preferred_simd_mode, to fix the
build. Same for HImode, SImode, HFmode and SFmode as introduced by a
recent patch.

2020-10-12  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/
* config/arm/arm.c (arm_preferred_simd_mode): Use E_FOOmode
instead of FOOmode.
gcc/config/arm/arm.c