load: handle MOVABS special case

This commit is contained in:
Michael McLoughlin
2018-11-23 16:14:05 -06:00
parent 2f7c14f061
commit 86373c79ee
2 changed files with 9 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ func (l *LoaderTest) Generate(w io.Writer, is []*inst.Instruction) error {
for _, f := range i.Forms {
as := l.args(i.Opcode, f.Operands)
if as == nil {
p.printf("\t// TODO: %#v\n", f.Operands)
p.printf("\t// TODO: %s %#v\n", i.Opcode, f.Operands)
counts["todo"]++
continue
}

View File

@@ -146,6 +146,14 @@ func (l Loader) include(f opcodesxml.Form) bool {
//
case "callq", "jmpl":
return false
// MOVABS doesn't seem to be supported either.
//
// Reference: https://github.com/golang/go/blob/1ac84999b93876bb06887e483ae45b27e03d7423/src/cmd/asm/internal/asm/testdata/amd64enc.s#L2354
//
// //TODO: MOVABSB 0x123456789abcdef1, AL // a0f1debc9a78563412
//
case "movabs":
return false
}
return true