3 // Copyright 2022 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.
9 type I interface{ M() }
11 func NopConvertIface(x I) I {
12 // amd64:-`.*runtime.convI2I`
16 func NopConvertGeneric[T any](x T) T {
17 // amd64:-`.*runtime.convI2I`
21 var NopConvertGenericIface = NopConvertGeneric[I]
23 func ConvToM(x any) I {
24 // amd64:`CALL\truntime.typeAssert`,`MOVL\t16\(.*\)`,`MOVQ\t8\(.*\)(.*\*1)`
25 // arm64:`CALL\truntime.typeAssert`,`LDAR`,`MOVWU`,`MOVD\t\(R.*\)\(R.*\)`