stub operand checks

This commit is contained in:
Michael McLoughlin
2018-11-26 10:13:04 -08:00
parent 767b625fe8
commit bed7e7e2c2
8 changed files with 8945 additions and 1989 deletions

View File

@@ -8,14 +8,14 @@ import (
func TestParamsUniqueArgNames(t *testing.T) {
for _, i := range inst.Instructions {
_, argname := params(i)
s := params(i)
for _, n := range i.Arities() {
if n == 0 {
continue
}
names := map[string]bool{}
for j := 0; j < n; j++ {
names[argname(j)] = true
names[s.ParameterName(j)] = true
}
if len(names) != n {
t.Errorf("repeated argument for instruction %s", i.Opcode)