github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/compile/internal/mips/galign.go (about) 1 // Copyright 2016 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package mips 6 7 import ( 8 "github.com/gagliardetto/golang-go/cmd/compile/internal/gc" 9 "github.com/gagliardetto/golang-go/cmd/compile/internal/ssa" 10 "github.com/gagliardetto/golang-go/cmd/internal/obj/mips" 11 "github.com/gagliardetto/golang-go/cmd/internal/objabi" 12 ) 13 14 func Init(arch *gc.Arch) { 15 arch.LinkArch = &mips.Linkmips 16 if objabi.GOARCH == "mipsle" { 17 arch.LinkArch = &mips.Linkmipsle 18 } 19 arch.REGSP = mips.REGSP 20 arch.MAXWIDTH = (1 << 31) - 1 21 arch.SoftFloat = (objabi.GOMIPS == "softfloat") 22 arch.ZeroRange = zerorange 23 arch.Ginsnop = ginsnop 24 arch.Ginsnopdefer = ginsnop 25 arch.SSAMarkMoves = func(s *gc.SSAGenState, b *ssa.Block) {} 26 arch.SSAGenValue = ssaGenValue 27 arch.SSAGenBlock = ssaGenBlock 28 }