refactor to use reg.Set

This commit is contained in:
Michael McLoughlin
2018-12-03 22:39:43 -08:00
parent faafa00e40
commit 9376a230cf
6 changed files with 118 additions and 30 deletions

12
reg/set_test.go Normal file
View File

@@ -0,0 +1,12 @@
package reg
import "testing"
func TestFamilyRegisterSets(t *testing.T) {
fs := []*Family{GeneralPurpose, SIMD}
for _, f := range fs {
if len(f.Set()) != len(f.Registers()) {
t.Fatal("family set and list should have same size")
}
}
}