Debian Codegraph @

test/codegen/issue70409.go

raw
1 // asmcheck -gcflags=-d=ssa/check/on
2
3 // Copyright 2024 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 // amd64:-"MOVQ"
10 func foo(v uint64) (b [8]byte) {
11 b[0] = byte(v)
12 b[1] = byte(v >> 8)
13 b[2] = byte(v >> 16)
14 b[3] = byte(v >> 24)
15 b[4] = byte(v >> 32)
16 b[5] = byte(v >> 40)
17 b[6] = byte(v >> 48)
18 b[7] = byte(v >> 56)
19 return b
20 }