Debian Codegraph @

test/codegen/regabi_regalloc.go

raw
1 // asmcheck
2
3 // Copyright 2021 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package codegen
8
9 //go:registerparams
10 func f1(a, b int) {
11 // amd64:"MOVQ BX, CX", "MOVQ AX, BX", "MOVL [$]1, AX", -"MOVQ .*DX"
12 g(1, a, b)
13 }
14
15 //go:registerparams
16 func f2(a, b int) {
17 // amd64:"MOVQ BX, AX", "MOVQ [AB]X, CX", -"MOVQ .*, BX"
18 g(b, b, b)
19 }
20
21 //go:noinline
22 //go:registerparams
23 func g(int, int, int) {}