Skip to content

Commit 5dc980c

Browse files
committed
gopls/internal/test/integration/misc: fix "want" assembly
MOVD, MOVL, MOV are all valid. The latter appears in riscv. Fixes golang/go#71956 Change-Id: I74aa3d9a47a20b44d398054e7184e984c6701ca0 Reviewed-on: https://go-review.googlesource.com/c/tools/+/652359 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]> Auto-Submit: Alan Donovan <[email protected]>
1 parent 6399d21 commit 5dc980c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gopls/internal/test/integration/misc/webserver_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,16 +605,16 @@ func init() {
605605
{
606606
report := asmFor(`f\(123\)`)
607607
checkMatch(t, true, report, `TEXT.*example.com/a.init`)
608-
checkMatch(t, true, report, `MOV. \$123`)
609-
checkMatch(t, true, report, `MOV. \$456`)
608+
checkMatch(t, true, report, `MOV.? \$123`)
609+
checkMatch(t, true, report, `MOV.? \$456`)
610610
checkMatch(t, true, report, `CALL example.com/a.f`)
611611
}
612612

613613
// And code in a source-level init function.
614614
{
615615
report := asmFor(`f\(789\)`)
616616
checkMatch(t, true, report, `TEXT.*example.com/a.init`)
617-
checkMatch(t, true, report, `MOV. \$789`)
617+
checkMatch(t, true, report, `MOV.? \$789`)
618618
checkMatch(t, true, report, `CALL example.com/a.f`)
619619
}
620620
})

0 commit comments

Comments
 (0)