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-Tag: upstream/12.2.0~21686 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a30d2558b3a199fe346479e6140cddae7fba5ed;p=platform%2Fupstream%2Fgcc.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 de8f50e..79b331a 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 2e59b86..4111721 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