1
0
mirror of https://github.com/golang/go synced 2024-10-05 16:41:21 -06:00

[dev.ssa] cmd/compile: add register spec to getg

This omission was causing the new regalloc to fail.

Change-Id: If7ba7be38a436dbd0dd443828ddd7ebf6e35be0e
Reviewed-on: https://go-review.googlesource.com/13632
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
Keith Randall 2015-08-13 13:12:17 -07:00
parent 3b705824ce
commit bc1f5768ce
2 changed files with 6 additions and 2 deletions

View File

@ -290,7 +290,7 @@ func init() {
// Pseudo-ops
{name: "LoweredPanicNilCheck"},
{name: "LoweredGetG"},
{name: "LoweredGetG", reg: gp01},
}
var AMD64blocks = []blockData{

View File

@ -2123,7 +2123,11 @@ var opcodeTable = [...]opInfo{
},
{
name: "LoweredGetG",
reg: regInfo{},
reg: regInfo{
outputs: []regMask{
65519, // .AX .CX .DX .BX .BP .SI .DI .R8 .R9 .R10 .R11 .R12 .R13 .R14 .R15
},
},
},
{