From c4cb9a90f6b5bf0dbe8b8fe3bf994c0c50c08aaf Mon Sep 17 00:00:00 2001 From: qmuntal Date: Wed, 8 Apr 2026 18:14:28 +0200 Subject: cmd/internal/tesdir: fix Test/codegen/switch on loong64 loong64 uses ALSLV the compute the lookup index. Fixes #78575 Change-Id: Ied90a4f811cc19ffec4d304333546d1fa430ccc0 Reviewed-on: https://go-review.googlesource.com/c/go/+/764180 Reviewed-by: abner chenc Reviewed-by: Keith Randall Reviewed-by: David Chase LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall --- test/codegen/switch.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/codegen/switch.go b/test/codegen/switch.go index 217862711e..baeb7cb8dd 100644 --- a/test/codegen/switch.go +++ b/test/codegen/switch.go @@ -134,7 +134,6 @@ func floatLookup(x int) float64 { func stringLookup(x int) string { // amd64:`LEAQ .*\(SB\)` -`JMP \(.*\)\(.*\)$` // arm64:-`JMP \(R.*\)$` - // loong64:-`ALSLV` switch x { case 1: return "a" @@ -161,7 +160,6 @@ func stringLookup(x int) string { func complexLookup(x int) complex128 { // amd64:`LEAQ .*\(SB\)` -`JMP \(.*\)\(.*\)$` // arm64:-`JMP \(R.*\)$` - // loong64:-`ALSLV` switch x { case 1: return 1 + 2i -- cgit v1.3