aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/aarch64/atomics.md
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-09-23 09:24:03 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-09-23 09:24:03 +0000
commit3a30d2558b3a199fe346479e6140cddae7fba5ed (patch)
tree0a33d93ac5b8f139ee4012d738e1e50a2c1a1101 /gcc/config/aarch64/atomics.md
parent158ab204321cfa5fe5466faa5a12b3c38c45125a (diff)
downloadgcc-3a30d2558b3a199fe346479e6140cddae7fba5ed.zip
gcc-3a30d2558b3a199fe346479e6140cddae7fba5ed.tar.gz
gcc-3a30d2558b3a199fe346479e6140cddae7fba5ed.tar.bz2
[AArch64] Fix memmodel index in aarch64_store_exclusive_pair
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. From-SVN: r276052
Diffstat (limited to 'gcc/config/aarch64/atomics.md')
-rw-r--r--gcc/config/aarch64/atomics.md2
1 files changed, 1 insertions, 1 deletions
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