Source file test/codegen/issue69635.go

     1  // asmcheck
     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  func calc(a uint64) uint64 {
    10  	v := a >> 20 & 0x7f
    11  	// amd64: `SHRQ\s\$17, AX$`, `ANDL\s\$1016, AX$`
    12  	return v << 3
    13  }
    14  

View as plain text