aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2026-04-08 18:14:28 +0200
committerQuim Muntal <quimmuntal@gmail.com>2026-04-09 05:10:28 -0700
commitc4cb9a90f6b5bf0dbe8b8fe3bf994c0c50c08aaf (patch)
treee11dd6a5a58d5fb997623bfceda8a413fed6007e
parentb3c54d2e597ee67939f9abc2ec8aaca841fb1138 (diff)
downloadgo-c4cb9a90f6b5bf0dbe8b8fe3bf994c0c50c08aaf.tar.xz
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 <chenguoqi@loongson.cn> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: David Chase <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@google.com>
-rw-r--r--test/codegen/switch.go2
1 files changed, 0 insertions, 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