X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/01b1f530dfce9d6dc9aac18ae1a6e0738d8e1887..9bca44cb97d2b5d01f41163932b260ae3a900299:/tests/mpx diff --git a/tests/mpx b/tests/mpx index db0230e..e8aabac 100644 --- a/tests/mpx +++ b/tests/mpx @@ -1,6 +1,6 @@ # Test vectors for low-level MP functions # -# $Id: mpx,v 1.6 2000/06/25 12:58:34 mdw Exp $ +# $Id: mpx,v 1.8 2002/10/06 22:52:50 mdw Exp $ # --- Load-store tests --- # @@ -20,10 +20,31 @@ load-store { 522f8b1de257972a25ec49c9ff56340e2684e847ef2fa4d5714d7c8d454e90f6; } +# --- Two's complement tests --- + +2cb { + "" ""; + 00 00; + 000000 00000000000000000000; + 01 ff; + 0123456789abcdef fedcba9876543211; + 0123456789abcdef fffffffedcba9876543211; + 0100000000 ffffff00000000; +} + +2cl { + "" ""; + 00 00; + 000000 00000000000000000000; + 01 ff; + efcdab8967452301 1132547698badcfe; + efcdab8967452301 1132547698badcfeffffffff; + 0000000001 00000000ffffffff; +} + # --- Shift tests --- lsl { - # --- Simple sanity checks --- 01 2 04; @@ -108,7 +129,6 @@ lsl { } lsr { - # --- Simple sanity checks --- 04 2 01;