[AArch64] Fix label mode
authorRichard Sandiford <richard.sandiford@linaro.org>
Tue, 22 Aug 2017 09:17:16 +0000 (09:17 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 22 Aug 2017 09:17:16 +0000 (09:17 +0000)
commit4033e62c978ce5bdbdc9bd637a7b08f38cc95a09
tree74ac081dae4705e59d98eb38ed96e3c38b7cb9c8
parent7f1bf27a0a82043ce50693cb6f9faf019765dd8b
[AArch64] Fix label mode

This patch fixes a case where we tried to force a VOIDmode label
into a DImode register, which led to invalid rtl that was previously
undiagnosed.

2017-08-22  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* config/aarch64/aarch64.md (casesi): Use DImode rather than
VOIDmode for the LABEL_REF.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251266
gcc/ChangeLog
gcc/config/aarch64/aarch64.md