go source for verification 2026-05-22
This commit is contained in:
17
test/codegen/schedule.go
Normal file
17
test/codegen/schedule.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// asmcheck
|
||||
|
||||
// Copyright 2025 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 f(n int) int {
|
||||
r := 0
|
||||
// arm64:-"MOVD R"
|
||||
// amd64:-"LEAQ" "INCQ"
|
||||
for i := range n {
|
||||
r += i
|
||||
}
|
||||
return r
|
||||
}
|
||||
Reference in New Issue
Block a user