]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64] Fix memmodel index in aarch64_store_exclusive_pair
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Sep 2019 09:24:03 +0000 (09:24 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Sep 2019 09:24:03 +0000 (09:24 +0000)
Found via an rtx checking failure.

2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
memmodel index.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276052 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/aarch64/atomics.md

index de8f50ef19b3514edc4f1136ddeda00ea3c8c534..79b331a2ad344e56257d722425f7496fd39f9677 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
+
+       * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
+       memmodel index.
+
 2019-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        PR ipa/91835
index 2e59b8684201ee2fc6bb748ff5d4b030c04dd227..411172119a27eea320f37c6d1b20f8c8b45328a7 100644 (file)
          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