From: Luke Kenneth Casson Leighton Date: Fri, 26 Oct 2018 07:03:10 +0000 (+0100) Subject: put in stuff that should not be overwritten X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72611d60ca1597660700d2d11b7e63a6e10effff;p=riscv-tests.git put in stuff that should not be overwritten put a5a5... into addw elwidth target registers to test if it gets overwritten --- diff --git a/isa/rv64ui/sv_addw_elwidth.S b/isa/rv64ui/sv_addw_elwidth.S index 304ca6e..370e341 100644 --- a/isa/rv64ui/sv_addw_elwidth.S +++ b/isa/rv64ui/sv_addw_elwidth.S @@ -10,8 +10,8 @@ RVTEST_RV64U # Define TVM used by program. SV_LDD_DATA( x12, testdata+16, 0); \ SV_LDD_DATA( x13, testdata+24, 0); \ \ - li x14, 0; \ - li x15, 0; \ + li x14, 0xa5a5a5a5a5a5a5a5; \ + li x15, 0xa5a5a5a5a5a5a5a5; \ \ SET_SV_MVL( 2); \ SET_SV_3CSRS( SV_REG_CSR( 1, 4, wid1, 4, 1), \ @@ -41,11 +41,11 @@ RVTEST_CODE_BEGIN # Start of test code. # SV_ELWIDTH_TEST( 0, 0, 0, 0xffffffff8b6bab8b, 0xffffffff88684828 ) - SV_ELWIDTH_TEST( 0, 0, 3, 0x886848288b6bab8b, 0x0000000000000000 ) + SV_ELWIDTH_TEST( 0, 0, 3, 0x886848288b6bab8b, 0xa5a5a5a5a5a5a5a5 ) SV_ELWIDTH_TEST( 1, 1, 0, 0xffffffffffffff8b, 0xffffffffffffffab ) - SV_ELWIDTH_TEST( 1, 1, 3, 0xffffffabffffff8b, 0x0000000000000000 ) - SV_ELWIDTH_TEST( 1, 1, 2, 0x00000000ffabff8b, 0x0000000000000000 ) - SV_ELWIDTH_TEST( 1, 1, 1, 0x000000000000ab8b, 0x0000000000000000 ) + SV_ELWIDTH_TEST( 1, 1, 3, 0xffffffabffffff8b, 0xa5a5a5a5a5a5a5a5 ) + SV_ELWIDTH_TEST( 1, 1, 2, 0xa5a5a5a5ffabff8b, 0xa5a5a5a5a5a5a5a5 ) + SV_ELWIDTH_TEST( 1, 1, 1, 0xa5a5a5a5a5a5ab8b, 0xa5a5a5a5a5a5a5a5 ) RVTEST_PASS # Signal success. fail: