| 1 | package upper32scip-go gomod github.com/mmcloughlin/avo . `github.com/mmcloughlin/avo/tests/alloc/upper32`/ |
| 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 upper32.s -stubs stub.go |
| 8 | |
| 9 | func TestUpper32scip-go gomod github.com/mmcloughlin/avo . `github.com/mmcloughlin/avo/tests/alloc/upper32`/TestUpper32().(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 = 14 * 3 |
| 11 | const expect = n * (n + 1) / 2 |
| 12 | if got := Upper32scip-go gomod github.com/mmcloughlin/avo . `github.com/mmcloughlin/avo/tests/alloc/upper32`/Upper32().(); got != expect { |
| 13 | t.Fatalfscip-go gomod github.com/golang/go/src go1.18 testing/common#Fatalf().("Upper32() = %v; expect %v", got, expect) |
| 14 | } |
| 15 | } |