]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "cmd/internal/obj/loong64: use the MOVVP instruction to optimize prologue"
authorabner chenc <chenguoqi@loongson.cn>
Tue, 23 Sep 2025 03:24:56 +0000 (20:24 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 26 Sep 2025 14:49:00 +0000 (07:49 -0700)
This reverts commit eb7c67fdc9e17959647a15db9e7781b9d447061a.

Reason for revert: Causes x/tools/gopls/internal/filecache/TestConcurrency failures, See issue 75571.

Fixes #75571
Fixes #75572

Change-Id: Ife328dce917c63c872da35f4a9e9f7ef8f88c712
Reviewed-on: https://go-review.googlesource.com/c/go/+/706035
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
src/cmd/internal/obj/loong64/obj.go

index ea110f00cbe4fb36919d1df5f2ff8c0a58c1cce9..a97217d31657cfcdf6029f6816721aa656e0592e 100644 (file)
@@ -324,7 +324,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
                                q = c.ctxt.StartUnsafePoint(q, c.newprog)
 
                                q = obj.Appendp(q, newprog)
-                               q.As = AMOVVP
+                               q.As = mov
                                q.Pos = p.Pos
                                q.From.Type = obj.TYPE_REG
                                q.From.Reg = REGLINK