Files
go-legacy-win7/test/codegen/issue69635.go

14 lines
307 B
Go
Raw Normal View History

2025-02-14 12:42:07 +07:00
// asmcheck
2024-09-21 23:49:08 +10:00
// Copyright 2024 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.
2025-02-14 12:42:07 +07:00
package codegen
2024-09-21 23:49:08 +10:00
2025-02-14 12:42:07 +07:00
func calc(a uint64) uint64 {
v := a >> 20 & 0x7f
// amd64: `SHRQ\s\$17, AX$`, `ANDL\s\$1016, AX$`
return v << 3
2024-09-21 23:49:08 +10:00
}