1 // Do not edit. Bootstrap copy of /usr/local/google/buildbot/src/android/build-tools/out/obj/go/src/cmd/compile/internal/arm64/galign.go 2 3 //line /usr/local/google/buildbot/src/android/build-tools/out/obj/go/src/cmd/compile/internal/arm64/galign.go:1 4 // Copyright 2009 The Go Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style 6 // license that can be found in the LICENSE file. 7 8 package arm64 9 10 import ( 11 "bootstrap/compile/internal/gc" 12 "bootstrap/internal/obj" 13 "bootstrap/internal/obj/arm64" 14 ) 15 16 var thechar int = '7' 17 18 var thestring string = "arm64" 19 20 var thelinkarch *obj.LinkArch = &arm64.Linkarm64 21 22 func linkarchinit() { 23 } 24 25 var MAXWIDTH int64 = 1 << 50 26 27 /* 28 * go declares several platform-specific type aliases: 29 * int, uint, and uintptr 30 */ 31 var typedefs = []gc.Typedef{ 32 gc.Typedef{"int", gc.TINT, gc.TINT64}, 33 gc.Typedef{"uint", gc.TUINT, gc.TUINT64}, 34 gc.Typedef{"uintptr", gc.TUINTPTR, gc.TUINT64}, 35 } 36 37 func betypeinit() { 38 gc.Widthptr = 8 39 gc.Widthint = 8 40 gc.Widthreg = 8 41 } 42 43 func Main() { 44 gc.Thearch.Thechar = thechar 45 gc.Thearch.Thestring = thestring 46 gc.Thearch.Thelinkarch = thelinkarch 47 gc.Thearch.Typedefs = typedefs 48 gc.Thearch.REGSP = arm64.REGSP 49 gc.Thearch.REGCTXT = arm64.REGCTXT 50 gc.Thearch.REGCALLX = arm64.REGRT1 51 gc.Thearch.REGCALLX2 = arm64.REGRT2 52 gc.Thearch.REGRETURN = arm64.REG_R0 53 gc.Thearch.REGMIN = arm64.REG_R0 54 gc.Thearch.REGMAX = arm64.REG_R31 55 gc.Thearch.REGZERO = arm64.REGZERO 56 gc.Thearch.FREGMIN = arm64.REG_F0 57 gc.Thearch.FREGMAX = arm64.REG_F31 58 gc.Thearch.MAXWIDTH = MAXWIDTH 59 gc.Thearch.ReservedRegs = resvd 60 61 gc.Thearch.Betypeinit = betypeinit 62 gc.Thearch.Cgen_hmul = cgen_hmul 63 gc.Thearch.Cgen_shift = cgen_shift 64 gc.Thearch.Clearfat = clearfat 65 gc.Thearch.Defframe = defframe 66 gc.Thearch.Dodiv = dodiv 67 gc.Thearch.Excise = excise 68 gc.Thearch.Expandchecks = expandchecks 69 gc.Thearch.Getg = getg 70 gc.Thearch.Gins = gins 71 gc.Thearch.Ginscmp = ginscmp 72 gc.Thearch.Ginscon = ginscon 73 gc.Thearch.Ginsnop = ginsnop 74 gc.Thearch.Gmove = gmove 75 gc.Thearch.Linkarchinit = linkarchinit 76 gc.Thearch.Peep = peep 77 gc.Thearch.Proginfo = proginfo 78 gc.Thearch.Regtyp = regtyp 79 gc.Thearch.Sameaddr = sameaddr 80 gc.Thearch.Smallindir = smallindir 81 gc.Thearch.Stackaddr = stackaddr 82 gc.Thearch.Blockcopy = blockcopy 83 gc.Thearch.Sudoaddable = sudoaddable 84 gc.Thearch.Sudoclean = sudoclean 85 gc.Thearch.Excludedregs = excludedregs 86 gc.Thearch.RtoB = RtoB 87 gc.Thearch.FtoB = RtoB 88 gc.Thearch.BtoR = BtoR 89 gc.Thearch.BtoF = BtoF 90 gc.Thearch.Optoas = optoas 91 gc.Thearch.Doregbits = doregbits 92 gc.Thearch.Regnames = regnames 93 94 gc.Main() 95 gc.Exit(0) 96 } 97