galign.go 735 Bytes
Newer Older
1 2 3 4
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

5
package mips64
6 7 8

import (
	"cmd/compile/internal/gc"
9
	"cmd/compile/internal/ssa"
10
	"cmd/internal/obj/mips"
11
	"cmd/internal/objabi"
12 13
)

14 15
func Init(arch *gc.Arch) {
	arch.LinkArch = &mips.Linkmips64
16
	if objabi.GOARCH == "mips64le" {
17
		arch.LinkArch = &mips.Linkmips64le
18
	}
19 20
	arch.REGSP = mips.REGSP
	arch.MAXWIDTH = 1 << 50
21
	arch.SoftFloat = objabi.GOMIPS64 == "softfloat"
22
	arch.ZeroRange = zerorange
23
	arch.Ginsnop = ginsnop
24
	arch.Ginsnopdefer = ginsnop
25

26 27 28
	arch.SSAMarkMoves = func(s *gc.SSAGenState, b *ssa.Block) {}
	arch.SSAGenValue = ssaGenValue
	arch.SSAGenBlock = ssaGenBlock
29
}