start at some basic passes

This commit is contained in:
Michael McLoughlin
2018-12-02 12:28:33 -08:00
parent 0ceb1c55a4
commit 43575d8b61
14 changed files with 7209 additions and 3904 deletions

View File

@@ -6,14 +6,13 @@ import (
"runtime"
"testing"
"github.com/mmcloughlin/avo"
"github.com/mmcloughlin/avo/reg"
)
func TestChecks(t *testing.T) {
cases := []struct {
Predicate func(avo.Operand) bool
Operand avo.Operand
Predicate func(Op) bool
Operand Op
Expect bool
}{
// Immediates