Skip to content

Commit 310a40b

Browse files
committed
cmd/compile: start MIPS64 port of SSA backend
Fib with all int and float types run correctly. *, /, shifts, Zero, Move not implemented yet. No optimization yet. Updates #16359. Change-Id: I4b0412954d5fd4c13a5fcddd8689ed8ac701d345 Reviewed-on: https://go-review.googlesource.com/27404 Reviewed-by: David Chase <drchase@google.com>
1 parent e4cae43 commit 310a40b

File tree

13 files changed

+5777
-198
lines changed

13 files changed

+5777
-198
lines changed

src/cmd/compile/internal/mips64/galign.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package mips64
66

77
import (
88
"cmd/compile/internal/gc"
9+
"cmd/compile/internal/ssa"
910
"cmd/internal/obj"
1011
"cmd/internal/obj/mips"
1112
)
@@ -62,6 +63,11 @@ func Main() {
6263
gc.Thearch.Doregbits = doregbits
6364
gc.Thearch.Regnames = regnames
6465

66+
gc.Thearch.SSARegToReg = ssaRegToReg
67+
gc.Thearch.SSAMarkMoves = func(s *gc.SSAGenState, b *ssa.Block) {}
68+
gc.Thearch.SSAGenValue = ssaGenValue
69+
gc.Thearch.SSAGenBlock = ssaGenBlock
70+
6571
gc.Main()
6672
gc.Exit(0)
6773
}

0 commit comments

Comments
 (0)