1
0
mirror of https://github.com/golang/go synced 2024-11-26 20:11:26 -07:00

cmd/internal/obj/mips: use r instead of p.Reg in call to OP_IRR

This commit is contained in:
Leon Klingele 2019-01-30 18:03:21 +01:00
parent 56c9f8e8cf
commit 9ebe282520
No known key found for this signature in database
GPG Key ID: 0C8AF48831EEC211

View File

@ -1275,7 +1275,7 @@ func (c *ctxt0) asmout(p *obj.Prog, o *Optab, out []uint32) {
r = REGZERO
}
/* only use 10 bits of trap code */
o1 = OP_IRR(c.opirr(p.As), (uint32(v)&0x3FF)<<6, uint32(p.Reg), uint32(p.To.Reg))
o1 = OP_IRR(c.opirr(p.As), (uint32(v)&0x3FF)<<6, uint32(r), uint32(p.To.Reg))
case 16: /* sll $c,[r1],r2 */
v := c.regoff(&p.From)