1// asmcheck 2 3// Copyright 2019 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 7package codegen 8 9// Make sure we use ADDQ instead of LEAQ when we can. 10 11func f(p *[4][2]int, x int) *int { 12 // amd64:"ADDQ",-"LEAQ" 13 return &p[x][0] 14} 15