From: Luke Kenneth Casson Leighton Date: Thu, 27 Jun 2019 12:56:33 +0000 (+0100) Subject: add zeroing to subvl predicated test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c590c61cc62c23fa239c9bf6d8e10b824e1a6a9f;p=riscv-tests.git add zeroing to subvl predicated test --- diff --git a/isa/rv64ui/sv_addi_predicated_subvl.S b/isa/rv64ui/sv_addi_predicated_subvl.S index 4cd3ec0..21be148 100644 --- a/isa/rv64ui/sv_addi_predicated_subvl.S +++ b/isa/rv64ui/sv_addi_predicated_subvl.S @@ -13,17 +13,17 @@ RVTEST_RV64U # Define TVM used by program. li x6, pred; \ \ SET_SV_MVL( 2); \ - SET_SV_CSR( 1, 3, SV_W_32BIT, 3, 1); \ + SET_SV_CSR( 1, 3, SV_W_8BIT, 3, 1); \ SET_SV_PRED_CSR( 1, 3, zero, inv, 6, 0); \ SET_SV_VL( 2); \ SET_SV_SUBVL( 2); \ \ addi x3, x3, 1; \ \ + SET_SV_SUBVL( 1); \ CLR_SV_CSRS(); \ SET_SV_VL( 1); \ SET_SV_MVL( 1); \ - SET_SV_SUBVL( 1); \ \ TEST_SV_IMM( x2, 1001); \ TEST_SV_IMM( x3, expect1); \ @@ -40,20 +40,18 @@ RVTEST_RV64U # Define TVM used by program. RVTEST_CODE_BEGIN # Start of test code. # no zeroing, no inversion -/* - SV_PREDICATION_TEST( 0x1, 0, 0, 0x4200000043, 0x4300000044 ) + SV_PREDICATION_TEST( 0x1, 0, 0, 0x41424445, 0 ) + SV_PREDICATION_TEST( 0x2, 0, 0, 0x42434344, 0 ) + SV_PREDICATION_TEST( 0x3, 0, 0, 0x42434445, 0 ) + SV_PREDICATION_TEST( 0x0, 0, 0, 0x41424344, 0 ) - SV_PREDICATION_TEST( 0x2, 0, 0, 41, 43 ) -*/ - //SV_PREDICATION_TEST( 0x3, 0, 0, 0x4200000043, 0x4400000045 ) - SV_PREDICATION_TEST( 0x0, 0, 0, 0x4100000042, 0x4300000044 ) -/* # zeroing, no inversion - SV_PREDICATION_TEST( 0x1, 0, 1, 42, 0 ) - SV_PREDICATION_TEST( 0x2, 0, 1, 0, 43 ) - SV_PREDICATION_TEST( 0x3, 0, 1, 42, 43 ) - SV_PREDICATION_TEST( 0x0, 0, 1, 0, 0 ) + SV_PREDICATION_TEST( 0x1, 0, 1, 0x00004445, 0 ) + SV_PREDICATION_TEST( 0x2, 0, 1, 0x42430000, 0 ) + SV_PREDICATION_TEST( 0x3, 0, 1, 0x42434445, 0 ) + SV_PREDICATION_TEST( 0x0, 0, 1, 0x00000000, 0 ) +/* # no zeroing, inversion SV_PREDICATION_TEST( 0x2, 1, 0, 42, 42 ) SV_PREDICATION_TEST( 0x1, 1, 0, 41, 43 ) @@ -78,8 +76,8 @@ RVTEST_CODE_END # End of test code. .align 3 testdata: .dword 1001 - .dword 0x4100000042 - .dword 0x4300000044 + .dword 0x41424344 + .dword 0x00000000 .dword 1002 # Output data section.