aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/gen/RISCV64.rules
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2020-03-16 02:47:40 +1100
committerJoel Sing <joel@sing.id.au>2020-03-24 14:21:50 +0000
commitade988623eb396fc2e11635362ad5162e6ab6a5e (patch)
tree81ddddcdb9103c70c1efc940d24279f812d58400 /src/cmd/compile/internal/ssa/gen/RISCV64.rules
parent20b46c7c697ce9d833141abe9aa0ea6101f00ae2 (diff)
downloadgo-ade988623eb396fc2e11635362ad5162e6ab6a5e.tar.gz
go-ade988623eb396fc2e11635362ad5162e6ab6a5e.zip
cmd/compile: provide Load32/Load64/Store32/Store64 atomic intrinsics on riscv64
Updates #36765 Change-Id: Id5ce5c5f60112e4f4cf9eec1b1ec120994934950 Reviewed-on: https://go-review.googlesource.com/c/go/+/223558 Reviewed-by: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/gen/RISCV64.rules')
-rw-r--r--src/cmd/compile/internal/ssa/gen/RISCV64.rules12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/ssa/gen/RISCV64.rules b/src/cmd/compile/internal/ssa/gen/RISCV64.rules
index 04d93d5f4d..281c3dd633 100644
--- a/src/cmd/compile/internal/ssa/gen/RISCV64.rules
+++ b/src/cmd/compile/internal/ssa/gen/RISCV64.rules
@@ -469,9 +469,15 @@
(InterCall ...) -> (CALLinter ...)
// Atomic Intrinsics
-(AtomicLoad8 ...) -> (LoweredAtomicLoad8 ...)
-
-(AtomicStore8 ...) -> (LoweredAtomicStore8 ...)
+(AtomicLoad8 ...) -> (LoweredAtomicLoad8 ...)
+(AtomicLoad32 ...) -> (LoweredAtomicLoad32 ...)
+(AtomicLoad64 ...) -> (LoweredAtomicLoad64 ...)
+(AtomicLoadPtr ...) -> (LoweredAtomicLoad64 ...)
+
+(AtomicStore8 ...) -> (LoweredAtomicStore8 ...)
+(AtomicStore32 ...) -> (LoweredAtomicStore32 ...)
+(AtomicStore64 ...) -> (LoweredAtomicStore64 ...)
+(AtomicStorePtrNoWB ...) -> (LoweredAtomicStore64 ...)
// Optimizations