2015-02-13 14:40:36 -05:00
|
|
|
// 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.
|
|
|
|
|
|
2015-05-21 13:28:10 -04:00
|
|
|
package arm
|
2015-02-13 14:40:36 -05:00
|
|
|
|
|
|
|
|
import (
|
2015-05-21 13:28:10 -04:00
|
|
|
"cmd/compile/internal/gc"
|
2015-02-13 14:40:36 -05:00
|
|
|
"cmd/internal/obj/arm"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func betypeinit() {
|
|
|
|
|
gc.Widthptr = 4
|
|
|
|
|
gc.Widthint = 4
|
|
|
|
|
gc.Widthreg = 4
|
|
|
|
|
}
|
|
|
|
|
|
2015-05-21 13:28:10 -04:00
|
|
|
func Main() {
|
2016-03-15 15:55:47 +11:00
|
|
|
gc.Thearch.Thechar = '5'
|
|
|
|
|
gc.Thearch.Thestring = "arm"
|
|
|
|
|
gc.Thearch.Thelinkarch = &arm.Linkarm
|
2015-02-13 14:40:36 -05:00
|
|
|
gc.Thearch.REGSP = arm.REGSP
|
|
|
|
|
gc.Thearch.REGCTXT = arm.REGCTXT
|
2015-03-18 17:26:36 -04:00
|
|
|
gc.Thearch.REGCALLX = arm.REG_R1
|
|
|
|
|
gc.Thearch.REGCALLX2 = arm.REG_R2
|
|
|
|
|
gc.Thearch.REGRETURN = arm.REG_R0
|
|
|
|
|
gc.Thearch.REGMIN = arm.REG_R0
|
|
|
|
|
gc.Thearch.REGMAX = arm.REGEXT
|
|
|
|
|
gc.Thearch.FREGMIN = arm.REG_F0
|
|
|
|
|
gc.Thearch.FREGMAX = arm.FREGEXT
|
2016-03-15 15:55:47 +11:00
|
|
|
gc.Thearch.MAXWIDTH = (1 << 32) - 1
|
2015-03-18 17:26:36 -04:00
|
|
|
gc.Thearch.ReservedRegs = resvd
|
|
|
|
|
|
2015-02-13 14:40:36 -05:00
|
|
|
gc.Thearch.Betypeinit = betypeinit
|
2015-03-18 17:26:36 -04:00
|
|
|
gc.Thearch.Cgen64 = cgen64
|
|
|
|
|
gc.Thearch.Cgen_hmul = cgen_hmul
|
|
|
|
|
gc.Thearch.Cgen_shift = cgen_shift
|
2015-02-13 14:40:36 -05:00
|
|
|
gc.Thearch.Clearfat = clearfat
|
2015-03-18 17:26:36 -04:00
|
|
|
gc.Thearch.Cmp64 = cmp64
|
2015-02-13 14:40:36 -05:00
|
|
|
gc.Thearch.Defframe = defframe
|
|
|
|
|
gc.Thearch.Excise = excise
|
|
|
|
|
gc.Thearch.Expandchecks = expandchecks
|
2015-04-03 12:23:28 -04:00
|
|
|
gc.Thearch.Getg = getg
|
2015-02-13 14:40:36 -05:00
|
|
|
gc.Thearch.Gins = gins
|
2015-05-06 12:28:19 -04:00
|
|
|
gc.Thearch.Ginscmp = ginscmp
|
2015-03-18 17:26:36 -04:00
|
|
|
gc.Thearch.Ginscon = ginscon
|
|
|
|
|
gc.Thearch.Ginsnop = ginsnop
|
2015-03-18 12:29:40 -04:00
|
|
|
gc.Thearch.Gmove = gmove
|
2015-03-18 17:26:36 -04:00
|
|
|
gc.Thearch.Cgenindex = cgenindex
|
2015-02-13 14:40:36 -05:00
|
|
|
gc.Thearch.Peep = peep
|
|
|
|
|
gc.Thearch.Proginfo = proginfo
|
|
|
|
|
gc.Thearch.Regtyp = regtyp
|
|
|
|
|
gc.Thearch.Sameaddr = sameaddr
|
|
|
|
|
gc.Thearch.Smallindir = smallindir
|
|
|
|
|
gc.Thearch.Stackaddr = stackaddr
|
2015-04-08 13:34:42 -04:00
|
|
|
gc.Thearch.Blockcopy = blockcopy
|
2015-03-18 17:26:36 -04:00
|
|
|
gc.Thearch.Sudoaddable = sudoaddable
|
|
|
|
|
gc.Thearch.Sudoclean = sudoclean
|
2015-02-13 14:40:36 -05:00
|
|
|
gc.Thearch.Excludedregs = excludedregs
|
|
|
|
|
gc.Thearch.RtoB = RtoB
|
|
|
|
|
gc.Thearch.FtoB = RtoB
|
|
|
|
|
gc.Thearch.BtoR = BtoR
|
|
|
|
|
gc.Thearch.BtoF = BtoF
|
|
|
|
|
gc.Thearch.Optoas = optoas
|
|
|
|
|
gc.Thearch.Doregbits = doregbits
|
|
|
|
|
gc.Thearch.Regnames = regnames
|
|
|
|
|
|
|
|
|
|
gc.Main()
|
2015-02-23 10:22:26 -05:00
|
|
|
gc.Exit(0)
|
2015-02-13 14:40:36 -05:00
|
|
|
}
|