X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/e75d775e7c8dd58f06e699371f44928535a59c44..4f29a7323a664994f633a7bcd5a1afc2914156fa:/tests/mpx diff --git a/tests/mpx b/tests/mpx index 8507fdc4..16038381 100644 --- a/tests/mpx +++ b/tests/mpx @@ -1,6 +1,6 @@ # Test vectors for low-level MP functions # -# $Id: mpx,v 1.7 2000/07/15 10:03:13 mdw Exp $ +# $Id: mpx,v 1.9 2002/10/19 18:55:08 mdw Exp $ # --- Load-store tests --- # @@ -20,6 +20,28 @@ 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 { @@ -28,6 +50,8 @@ lsl { 01 2 04; 01 4 10; + 7 -1 0; + # --- Copy shifts --- 01 0 01; @@ -111,6 +135,8 @@ lsr { 04 2 01; 10 4 01; + 7 -1 0; + 7 32 0; # --- Copy shifts ---