| 1 | package gp8scip-go gomod github.com/mmcloughlin/avo . `github.com/mmcloughlin/avo/tests/alloc/gp8`/ |
| 2 | |
| 3 | import ( |
| 4 | "testingscip-go gomod github.com/golang/go/src go1.18 testing/" |
| 5 | ) |
| 6 | |
| 7 | //go:generate go run asm.go -out gp8.s -stubs stub.go |
| 8 | |
| 9 | func TestGP8scip-go gomod github.com/mmcloughlin/avo . `github.com/mmcloughlin/avo/tests/alloc/gp8`/TestGP8().(t *testingscip-go gomod github.com/golang/go/src go1.18 testing/.Tscip-go gomod github.com/golang/go/src go1.18 testing/T#) { |
| 10 | const n = 19 |
| 11 | expect := uint8(n * (n + 1) / 2) |
| 12 | if got := GP8scip-go gomod github.com/mmcloughlin/avo . `github.com/mmcloughlin/avo/tests/alloc/gp8`/GP8().(); got != expect { |
| 13 | t.Fatalfscip-go gomod github.com/golang/go/src go1.18 testing/common#Fatalf().("GP8() = %d; expect %d", got, expect) |
| 14 | } |
| 15 | } |