mirror of
https://github.com/golang/go
synced 2024-11-15 11:40:35 -07:00
56 lines
1.5 KiB
Go
56 lines
1.5 KiB
Go
|
// asmcheck
|
||
|
|
||
|
// Copyright 2023 The Go Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
package codegen
|
||
|
|
||
|
func combine2string(p *[2]string, a, b string) {
|
||
|
// amd64:`.*runtime[.]gcWriteBarrier4\(SB\)`
|
||
|
// arm64:`.*runtime[.]gcWriteBarrier4\(SB\)`
|
||
|
p[0] = a
|
||
|
// amd64:-`.*runtime[.]gcWriteBarrier`
|
||
|
// arm64:-`.*runtime[.]gcWriteBarrier`
|
||
|
p[1] = b
|
||
|
}
|
||
|
|
||
|
func combine4string(p *[4]string, a, b, c, d string) {
|
||
|
// amd64:`.*runtime[.]gcWriteBarrier8\(SB\)`
|
||
|
// arm64:`.*runtime[.]gcWriteBarrier8\(SB\)`
|
||
|
p[0] = a
|
||
|
// amd64:-`.*runtime[.]gcWriteBarrier`
|
||
|
// arm64:-`.*runtime[.]gcWriteBarrier`
|
||
|
p[1] = b
|
||
|
// amd64:-`.*runtime[.]gcWriteBarrier`
|
||
|
// arm64:-`.*runtime[.]gcWriteBarrier`
|
||
|
p[2] = c
|
||
|
// amd64:-`.*runtime[.]gcWriteBarrier`
|
||
|
// arm64:-`.*runtime[.]gcWriteBarrier`
|
||
|
p[3] = d
|
||
|
}
|
||
|
|
||
|
func combine2slice(p *[2][]byte, a, b []byte) {
|
||
|
// amd64:`.*runtime[.]gcWriteBarrier4\(SB\)`
|
||
|
// arm64:`.*runtime[.]gcWriteBarrier4\(SB\)`
|
||
|
p[0] = a
|
||
|
// amd64:-`.*runtime[.]gcWriteBarrier`
|
||
|
// arm64:-`.*runtime[.]gcWriteBarrier`
|
||
|
p[1] = b
|
||
|
}
|
||
|
|
||
|
func combine4slice(p *[4][]byte, a, b, c, d []byte) {
|
||
|
// amd64:`.*runtime[.]gcWriteBarrier8\(SB\)`
|
||
|
// arm64:`.*runtime[.]gcWriteBarrier8\(SB\)`
|
||
|
p[0] = a
|
||
|
// amd64:-`.*runtime[.]gcWriteBarrier`
|
||
|
// arm64:-`.*runtime[.]gcWriteBarrier`
|
||
|
p[1] = b
|
||
|
// amd64:-`.*runtime[.]gcWriteBarrier`
|
||
|
// arm64:-`.*runtime[.]gcWriteBarrier`
|
||
|
p[2] = c
|
||
|
// amd64:-`.*runtime[.]gcWriteBarrier`
|
||
|
// arm64:-`.*runtime[.]gcWriteBarrier`
|
||
|
p[3] = d
|
||
|
}
|