diff --git a/test-suite/tests/numbers.test b/test-suite/tests/numbers.test index 5cbe40ecd..8ba975964 100644 --- a/test-suite/tests/numbers.test +++ b/test-suite/tests/numbers.test @@ -2069,3 +2069,17 @@ (pass-if n (= i (logcount n)))))) +;;; +;;; lognot +;;; + +(with-test-prefix "lognot" + (pass-if (= -1 (lognot 0))) + (pass-if (= 0 (lognot -1))) + (pass-if (= -2 (lognot 1))) + (pass-if (= 1 (lognot -2))) + + (pass-if (= #x-100000000000000000000000000000000 + (lognot #xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))) + (pass-if (= #xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF + (lognot #x-100000000000000000000000000000000))))