]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/codegen/switch.go
cmd/compile: add a cache to interface type switches
[gostls13.git] / test / codegen / switch.go
index 63b0dce8a63cb0342bb9fb1688fd47511fb6635a..6778c65ab3a4fe3998bec8990aefd14bf6dad4bf 100644 (file)
@@ -128,8 +128,8 @@ type J interface {
 
 // use a runtime call for type switches to interface types.
 func interfaceSwitch(x any) int {
-       // amd64:`CALL\truntime.interfaceSwitch`
-       // arm64:`CALL\truntime.interfaceSwitch`
+       // amd64:`CALL\truntime.interfaceSwitch`,`MOVL\t16\(.*\)`,`MOVQ\t8\(.*\)(.*\*8)`
+       // arm64:`CALL\truntime.interfaceSwitch`,`LDAR`,`MOVWU`,`MOVD\t\(R.*\)\(R.*\)`
        switch x.(type) {
        case I:
                return 1