Commit bc1f5768 authored by Keith Randall's avatar Keith Randall

[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/13632Reviewed-by: default avatarJosh Bleecher Snyder <josharian@gmail.com>
parent 3b705824
...@@ -290,7 +290,7 @@ func init() { ...@@ -290,7 +290,7 @@ func init() {
// Pseudo-ops // Pseudo-ops
{name: "LoweredPanicNilCheck"}, {name: "LoweredPanicNilCheck"},
{name: "LoweredGetG"}, {name: "LoweredGetG", reg: gp01},
} }
var AMD64blocks = []blockData{ var AMD64blocks = []blockData{
......
...@@ -2123,7 +2123,11 @@ var opcodeTable = [...]opInfo{ ...@@ -2123,7 +2123,11 @@ var opcodeTable = [...]opInfo{
}, },
{ {
name: "LoweredGetG", name: "LoweredGetG",
reg: regInfo{}, reg: regInfo{
outputs: []regMask{
65519, // .AX .CX .DX .BX .BP .SI .DI .R8 .R9 .R10 .R11 .R12 .R13 .R14 .R15
},
},
}, },
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment