From 5881c41e7f6c17709ba3b4ada13fa15ab4bae2df Mon Sep 17 00:00:00 2001 From: limeidan Date: Sat, 6 Jan 2024 16:59:56 +0800 Subject: [PATCH] cmd/internal/obj/loong64: remove unuseless functions Change-Id: Ieee97a9477090d4273e54a6667b0a051bb0c1e9d Reviewed-on: https://go-review.googlesource.com/c/go/+/565619 Reviewed-by: Dmitri Shuralyov Reviewed-by: Michael Knyszek Reviewed-by: Qiqi Huang Reviewed-by: sophie zhao LUCI-TryBot-Result: Go LUCI Reviewed-by: abner chenc --- src/cmd/internal/obj/loong64/asm.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/cmd/internal/obj/loong64/asm.go b/src/cmd/internal/obj/loong64/asm.go index 749db664217..45568c9a4f0 100644 --- a/src/cmd/internal/obj/loong64/asm.go +++ b/src/cmd/internal/obj/loong64/asm.go @@ -1247,14 +1247,6 @@ func buildop(ctxt *obj.Link) { } } -func OP(x uint32, y uint32) uint32 { - return x<<3 | y<<0 -} - -func SP(x uint32, y uint32) uint32 { - return x<<29 | y<<26 -} - func OP_TEN(x uint32, y uint32) uint32 { return x<<21 | y<<10 }