aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/writebarrier.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen/writebarrier.go')
-rw-r--r--test/codegen/writebarrier.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/codegen/writebarrier.go b/test/codegen/writebarrier.go
index e2b1399399..c3c39c58f7 100644
--- a/test/codegen/writebarrier.go
+++ b/test/codegen/writebarrier.go
@@ -88,3 +88,16 @@ func issue71228(dst *S, ptr *int) {
//amd64:`.*runtime[.]wbMove`
*dst = *sp
}
+
+func writeDouble(p *[2]*int, x, y *int) {
+ // arm64: `LDP\s`, `STP\s\(R[0-9]+, R[0-9]+\), \(`,
+ p[0] = x
+ // arm64: `STP\s\(R[0-9]+, R[0-9]+\), 16\(`,
+ p[1] = y
+}
+
+func writeDoubleNil(p *[2]*int) {
+ // arm64: `LDP\s`, `STP\s\(R[0-9]+, R[0-9]+\),`, `STP\s\(ZR, ZR\),`
+ p[0] = nil
+ p[1] = nil
+}