[AArch64] Fix PR87511
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 11 Oct 2018 19:10:12 +0000 (19:10 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Thu, 11 Oct 2018 19:10:12 +0000 (19:10 +0000)
commit1b6acf2339201a7464d052f1909b24a64021685b
tree6d24d43466f22abcdc18d95d8f56ae8af5cf31c5
parent03f6d32edb50546f1a123e848ae98a70a747b0c7
[AArch64] Fix PR87511

As mentioned in PR87511, the shift used in aarch64_mask_and_shift_for_ubfiz_p
should be evaluated as a HOST_WIDE_INT rather than int.

Passes bootstrap & regress.

    gcc/
PR target/87511
* config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
Use HOST_WIDE_INT_1U for shift.

    testsuite/
PR target/87511
* gcc.target/aarch64/pr87511.c: Add new test.

From-SVN: r265058
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pr87511.c [new file with mode: 0644]