- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for flagRegister2flagConstant (0.26 sec)
-
src/cmd/compile/internal/ssa/flags_test.go
var numbers = []int64{ 1, 0, -1, 2, -2, 1<<63 - 1, -1 << 63, } coverage := map[flagConstant]bool{} for _, x := range numbers { for _, y := range numbers { a := addFlags64(x, y) b := flagRegister2flagConstant(asmAddFlags(x, y), false) if a != b { t.Errorf("asmAdd diff: x=%x y=%x got=%s want=%s\n", x, y, a, b) } coverage[a] = true } } if len(coverage) != 9 { // TODO: can we cover all outputs?
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 04 19:36:17 UTC 2022 - 2.5K bytes - Viewed (0)