| 1 |
// asmcheck |
| 2 |
|
| 3 |
// Copyright 2025 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 |
import "reflect" |
| 10 |
|
| 11 |
func f() reflect.Type { |
| 12 |
// amd64:`LEAQ\stype:\*int\(SB\)` |
| 13 |
// arm64:`MOVD\s\$type:\*int\(SB\)` |
| 14 |
return reflect.TypeFor[*int]() |
| 15 |
} |
| 16 |
|
| 17 |
func g() reflect.Type { |
| 18 |
// amd64:`LEAQ\stype:int\(SB\)` |
| 19 |
// arm64:`MOVD\s\$type:int\(SB\)` |
| 20 |
return reflect.TypeFor[int]() |
| 21 |
} |
| 22 |
|