From: Luke Kenneth Casson Leighton Date: Tue, 30 Oct 2018 06:22:17 +0000 (+0000) Subject: add extra unit tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35a439636b954821b239961634e69e04f6bffd70;p=riscv-tests.git add extra unit tests --- diff --git a/isa/rv64ui/sv_addw_elwidth.S b/isa/rv64ui/sv_addw_elwidth.S index 32ec811..2a6c408 100644 --- a/isa/rv64ui/sv_addw_elwidth.S +++ b/isa/rv64ui/sv_addw_elwidth.S @@ -62,6 +62,16 @@ RVTEST_CODE_BEGIN # Start of test code. 0xa5a5006bffabff8b, 0xa5a5a5a5a5a5a5a5, 0xa5a5a5a5a5a5a5a5 ) SV_ELWIDTH_TEST( 3, 1, 1, 1, 1, 1, 1, 0xa5a5a5a5a56bab8b, 0xa5a5a5a5a5a5a5a5, 0xa5a5a5a5a5a5a5a5 ) + SV_ELWIDTH_TEST( 3, 0, 0, 0, 1, 1, 0, + 0xffffffff8b6bab8b, 0xa5a5a5a5a5a5a5a5, 0xa5a5a5a5a5a5a5a5 ) + SV_ELWIDTH_TEST( 3, 3, 3, 3, 1, 1, 0, + 0xffffffff8b6bab8b, 0xa5a5a5a5a5a5a5a5, 0xa5a5a5a5a5a5a5a5 ) + SV_ELWIDTH_TEST( 3, 2, 2, 3, 1, 1, 0, + 0xffffffffffffab8b, 0xa5a5a5a5a5a5a5a5, 0xa5a5a5a5a5a5a5a5 ) + SV_ELWIDTH_TEST( 3, 3, 2, 3, 1, 1, 0, + 0x000000004232ab8b, 0xa5a5a5a5a5a5a5a5, 0xa5a5a5a5a5a5a5a5 ) + SV_ELWIDTH_TEST( 3, 2, 3, 3, 1, 1, 0, + 0x000000004939ab8b, 0xa5a5a5a5a5a5a5a5, 0xa5a5a5a5a5a5a5a5 ) RVTEST_PASS # Signal success. fail: