From: Richard Sandiford Date: Mon, 23 Sep 2019 09:24:03 +0000 (+0000) Subject: [AArch64] Fix memmodel index in aarch64_store_exclusive_pair X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a30d2558b3a199fe346479e6140cddae7fba5ed;p=gcc.git [AArch64] Fix memmodel index in aarch64_store_exclusive_pair Found via an rtx checking failure. 2019-09-23 Richard Sandiford gcc/ * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix memmodel index. From-SVN: r276052 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index de8f50ef19b..79b331a2ad3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-09-23 Richard Sandiford + + * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix + memmodel index. + 2019-09-23 Rainer Orth PR ipa/91835 diff --git a/gcc/config/aarch64/atomics.md b/gcc/config/aarch64/atomics.md index 2e59b868420..411172119a2 100644 --- a/gcc/config/aarch64/atomics.md +++ b/gcc/config/aarch64/atomics.md @@ -752,7 +752,7 @@ UNSPECV_SX))] "" { - enum memmodel model = memmodel_from_int (INTVAL (operands[3])); + enum memmodel model = memmodel_from_int (INTVAL (operands[4])); if (is_mm_relaxed (model) || is_mm_consume (model) || is_mm_acquire (model)) return "stxp\t%w0, %x2, %x3, %1"; else