https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87511
--- Comment #2 from Wilco <wilco at gcc dot gnu.org> --- Author: wilco Date: Thu Oct 11 19:10:12 2018 New Revision: 265058 URL: https://gcc.gnu.org/viewcvs?rev=265058&root=gcc&view=rev Log: [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. Added: trunk/gcc/testsuite/gcc.target/aarch64/pr87511.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/aarch64/aarch64.c trunk/gcc/testsuite/ChangeLog