* [GCC 9 backport][AArch64] PR target/94518: Fix memmodel index in aarch64_store_exclusive_pair
@ 2020-04-07 16:27 Kyrylo Tkachov
0 siblings, 0 replies; only message in thread
From: Kyrylo Tkachov @ 2020-04-07 16:27 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 433 bytes --]
Hi all,
A straight backport of
[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.
Bootstrapped and tested on aarch64-none-linux-gnu.
Committing to the GCC 9 branch.
Thanks,
Kyrill
[-- Attachment #2: tmp.patch --]
[-- Type: application/octet-stream, Size: 970 bytes --]
commit 3a30d2558b3a199fe346479e6140cddae7fba5ed
Author: Richard Sandiford <richard.sandiford@arm.com>
Date: Mon Sep 23 09:24:03 2019 +0000
[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
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-07 16:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 16:27 [GCC 9 backport][AArch64] PR target/94518: Fix memmodel index in aarch64_store_exclusive_pair Kyrylo Tkachov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).