put in stuff that should not be overwritten
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 26 Oct 2018 07:03:10 +0000 (08:03 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 26 Oct 2018 07:03:10 +0000 (08:03 +0100)
put a5a5... into addw elwidth target registers to test if it gets
overwritten

isa/rv64ui/sv_addw_elwidth.S

index 304ca6e3611a0162166bd21862b1a43cdfc0b0b1..370e341fe0b438a7ecc247b2da2285c2d1ab0151 100644 (file)
@@ -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: