]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: provide Add/Cas/Exchange atomic intrinsics on riscv64
authorJoel Sing <joel@sing.id.au>
Sun, 15 Mar 2020 15:51:54 +0000 (02:51 +1100)
committerJoel Sing <joel@sing.id.au>
Wed, 25 Mar 2020 00:06:40 +0000 (00:06 +0000)
commitefb0ac4ce6a95435f8fba8c7f77becf083e8eaad
tree64b275c1fd1c509402d52ae3394aa8333f90997d
parent9f343b1942356e0c87c6994118be298f634e6b4d
cmd/compile: provide Add/Cas/Exchange atomic intrinsics on riscv64

Provide Add32, Add64, Cas32, Cas64, Exchange32 and Exchange64 atomic
intrinsics on riscv64.

Updates #36765

Change-Id: I9a3b7d2ce3d49f699171fd76a0fed891d149a6bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/223559
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/riscv64/ssa.go
src/cmd/compile/internal/ssa/gen/RISCV64.rules
src/cmd/compile/internal/ssa/gen/RISCV64Ops.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteRISCV64.go