Added fallback for numbers that can't be encoded on arm64
This commit is contained in:
parent
d5118148c9
commit
2a8d4fcc6d
11 changed files with 138 additions and 90 deletions
18
src/asmc/bench_test.go
Normal file
18
src/asmc/bench_test.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
package asmc_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.urbach.dev/cli/q/src/asm"
|
||||
"git.urbach.dev/cli/q/src/asmc"
|
||||
"git.urbach.dev/cli/q/src/cpu"
|
||||
)
|
||||
|
||||
func BenchmarkFinalize(b *testing.B) {
|
||||
a := asm.Assembler{}
|
||||
a.RegisterNumber(asm.MOVE, cpu.Register(0), 0)
|
||||
|
||||
for b.Loop() {
|
||||
asmc.Finalize(&a, nil)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue