aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/prove_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/ssa/prove_test.go')
-rw-r--r--src/cmd/compile/internal/ssa/prove_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/prove_test.go b/src/cmd/compile/internal/ssa/prove_test.go
index 969e68fee4..42a60dcb40 100644
--- a/src/cmd/compile/internal/ssa/prove_test.go
+++ b/src/cmd/compile/internal/ssa/prove_test.go
@@ -81,3 +81,7 @@ func TestLimitCtzUnsigned(t *testing.T) {
func TestLimitBitlenUnsigned(t *testing.T) {
testLimitUnaryOpUnsigned8(t, "bitlen", limit{-128, 127, 0, 8}, limit.bitlen, func(x uint8) uint8 { return uint8(bits.Len8(x)) })
}
+
+func TestLimitPopcountUnsigned(t *testing.T) {
+ testLimitUnaryOpUnsigned8(t, "popcount", limit{-128, 127, 0, 8}, limit.popcount, func(x uint8) uint8 { return uint8(bits.OnesCount8(x)) })
+}