Source file test/codegen/schedule.go

     1  // asmcheck
     2  
     3  // Copyright 2025 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  func f(n int) int {
    10  	r := 0
    11  	// arm64:-"MOVD\t R"
    12  	// amd64:-"LEAQ","INCQ"
    13  	for i := range n {
    14  		r += i
    15  	}
    16  	return r
    17  }
    18  

View as plain text