https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94368
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by Andre Simoes Dias Vieira <avie...@gcc.gnu.org>: https://gcc.gnu.org/g:163e0d03f2cdc80de4968c4be4694cdaeaf47fcd commit r8-10212-g163e0d03f2cdc80de4968c4be4694cdaeaf47fcd Author: Andre Vieira <andre.simoesdiasvie...@arm.com> Date: Thu Apr 16 10:16:17 2020 +0100 aarch64: Fix up aarch64_compare_and_swaphi pattern [PR94368] 2020-04-16 Andre Vieira <andre.simoesdiasvie...@arm.com> Backport from mainline 2020-03-31 Jakub Jelinek <ja...@redhat.com> PR target/94368 * config/aarch64/constraints.md (Uph): New constraint. * config/aarch64/atomics.md (cas_short_expected_imm): New mode attr. (aarch64_compare_and_swap<mode>): Use it instead of n in operand 2's constraint. * gcc.dg/pr94368.c: New test.