Commit 47791c1a authored by Michael Matloob's avatar Michael Matloob Committed by Michael Matloob

[dev.ssa] cmd/compile/internal/gc: generate TESTQ instruction

TESTQ is produced by the IsNonNil lowering.

Change-Id: I9df8f17e6def7e34d07e3ddf2dd5dd8f0406aa04
Reviewed-on: https://go-review.googlesource.com/11053Reviewed-by: 's avatarKeith Randall <khr@golang.org>
parent 2efdaefd
......@@ -962,6 +962,12 @@ func genValue(v *ssa.Value) {
p.From.Reg = regnum(v.Args[0])
p.To.Type = obj.TYPE_REG
p.To.Reg = regnum(v.Args[1])
case ssa.OpAMD64TESTQ:
p := Prog(x86.ATESTQ)
p.From.Type = obj.TYPE_REG
p.From.Reg = regnum(v.Args[0])
p.To.Type = obj.TYPE_REG
p.To.Reg = regnum(v.Args[1])
case ssa.OpAMD64MOVQconst:
x := regnum(v)
p := Prog(x86.AMOVQ)
......
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