diff options
| author | Alasdair Armstrong | 2018-07-30 19:16:34 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2018-08-01 16:42:33 +0100 |
| commit | 1479ae359fd3afebf9c3dfb6e58a77254e8140ea (patch) | |
| tree | ffcfd96409467a5c41009f68afe1f65a2c7a3d49 /src/test/lib/tests/test_multiply.sail | |
| parent | 0b70a9d7464d6c30534d2f511cb8c9879c76b1e5 (diff) | |
Remove old test directory in src/test
Diffstat (limited to 'src/test/lib/tests/test_multiply.sail')
| -rw-r--r-- | src/test/lib/tests/test_multiply.sail | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/lib/tests/test_multiply.sail b/src/test/lib/tests/test_multiply.sail deleted file mode 100644 index 03adfa27..00000000 --- a/src/test/lib/tests/test_multiply.sail +++ /dev/null @@ -1,21 +0,0 @@ -function unit test () = { - test_assert ("multiply", 6 * 9 == 54); - test_assert ("multiply_vec", ((bit[8])(0x6 * 0xb)) == 0x42); - test_assert ("mult_range_vec", ((bit[8])(6 * 0xb)) == 0x42); - test_assert ("mult_vec_range", ((bit[8])(0x6 * 11)) == 0x42); - (* XXX mult_oveflow_vec missing *) - - (* XXX not implmented - test_assert ("multiply_signed", 6 *_s 9 == 54); *) - test_assert ("multiply_vec_signed", ((bit[8])(0x6 *_s 0xb)) == 0xe2); - test_assert ("mult_range_vec_signed", ((bit[8])(6 *_s 0xb)) == 0xe2); - test_assert ("mult_vec_range_signed", ((bit[8])(0x6 *_s 11)) == 0xe2); - - (* XXX don't think it's possible to set carryout out bit *) - test_assert ("mult_overflow_vec_signed0", (((bit[8], bit, bit)) (0xf *_s 0x2)) == (0xfe, false, false)); - test_assert ("mult_overflow_vec_signed1", (((bit[8], bit, bit)) (0xf *_s 0xf)) == (0x01, false, false)); - test_assert ("mult_overflow_vec_signed2", (((bit[8], bit, bit)) (0x8 *_s 0x8)) == (0x40, true, false)); - test_assert ("mult_overflow_vec_signed3", (((bit[8], bit, bit)) (0x7 *_s 0x7)) == (0x31, true, false)); - test_assert ("mult_overflow_vec_signed4", (((bit[8], bit, bit)) (0x8 *_s 0x7)) == (0xc8, true, false)); -} - |
