Source file test/codegen/regabi_regalloc.go

     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\tBX, CX", "MOVQ\tAX, BX", "MOVL\t\\$1, AX", -"MOVQ\t.*DX"
    12  	g(1, a, b)
    13  }
    14  
    15  //go:registerparams
    16  func f2(a, b int) {
    17  	// amd64:"MOVQ\tBX, AX", "MOVQ\t[AB]X, CX", -"MOVQ\t.*, BX"
    18  	g(b, b, b)
    19  }
    20  
    21  //go:noinline
    22  //go:registerparams
    23  func g(int, int, int) {}
    24  

View as plain text