This will get fixed properly upstream, but this will serve for now.
Change-Id: I25e5210d190bc7a06a5b9f80724e3360d1a6b10c
Reviewed-on: https://go-review.googlesource.com/5121
Reviewed-by: Russ Cox <rsc@golang.org>
otxt = p.Pcond.Pc - c
if otxt < -(1<<15)+10 || otxt >= (1<<15)-10 {
q = new(obj.Prog)
+ q.Ctxt = p.Ctxt
q.Link = p.Link
p.Link = q
q.As = ABR
q.Pcond = p.Pcond
p.Pcond = q
q = new(obj.Prog)
+ q.Ctxt = p.Ctxt
q.Link = p.Link
p.Link = q
q.As = ABR
p.To.Reg = REGSP
p.Spadj = -autosize
- q = new(obj.Prog)
+ q = p.Ctxt.NewProg()
q.As = ABR
q.Lineno = p.Lineno
q.To.Type = obj.TYPE_REG
p.To.Type = obj.TYPE_REG
p.To.Reg = REGTMP
- q = new(obj.Prog)
+ q = p.Ctxt.NewProg()
q.As = AMOVD
q.Lineno = p.Lineno
q.From.Type = obj.TYPE_REG
if false {
// Debug bad returns
- q = new(obj.Prog)
-
+ q = p.Ctxt.NewProg()
q.As = AMOVD
q.Lineno = p.Lineno
q.From.Type = obj.TYPE_MEM
}
if autosize != 0 {
- q = new(obj.Prog)
+ q = p.Ctxt.NewProg()
q.As = AADD
q.Lineno = p.Lineno
q.From.Type = obj.TYPE_CONST
p.Link = q
}
- q1 = new(obj.Prog)
+ q1 = p.Ctxt.NewProg()
q1.As = ABR
q1.Lineno = p.Lineno
q1.To.Type = obj.TYPE_REG
}
a = ABR
- q = new(obj.Prog)
+ q = p.Ctxt.NewProg()
q.As = int16(a)
q.Lineno = p.Lineno
q.To.Type = obj.TYPE_BRANCH