mmcloughlin / avo

Generate x86 Assembly with Go
BSD 3-Clause "New" or "Revised" License
2.71k stars 89 forks source link

testing: extend tests for register allocator #43

Open mmcloughlin opened 5 years ago

mmcloughlin commented 5 years ago

We are reliant primarily on the examples for testing at this point. It would be good to "stress" the allocator because I would be (pleasantly) surprised if it's bug-free.

Unit tests right now are trivial:

https://github.com/mmcloughlin/avo/blob/775226218cf92a1bd779beafb8bd3144cb4371f0/pass/alloc_test.go#L9-L46

mmcloughlin commented 5 years ago

See #65 for an apparent problem.