refactor to use reg.Set
This commit is contained in:
12
reg/set_test.go
Normal file
12
reg/set_test.go
Normal 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")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user