From: Luke Kenneth Casson Leighton Date: Fri, 2 Nov 2018 07:26:48 +0000 (+0000) Subject: still experimenting with sv flw elwidth unit test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af5e6bd11985152e51182e8ba8665a02d3cd72ec;p=riscv-tests.git still experimenting with sv flw elwidth unit test --- diff --git a/isa/rv64uf/sv_fld_elwidth.S b/isa/rv64uf/sv_fld_elwidth.S index 5590751..20cbeeb 100644 --- a/isa/rv64uf/sv_fld_elwidth.S +++ b/isa/rv64uf/sv_fld_elwidth.S @@ -79,17 +79,14 @@ RVTEST_CODE_BEGIN # Start of test code. SV_ELWIDTH_TESTW(flw , 3, 4, SV_W_DFLT, SV_W_DFLT, testdata1, answer1 ) SV_ELWIDTH_TESTW(flw , 3, 4, SV_W_16BIT, SV_W_DFLT, testdata3, answer8) + SV_ELWIDTH_TESTW(flw , 4, 4, SV_W_16BIT, SV_W_32BIT, testdata3, answer4) +/* + XXX: causes unexpected results, possibly memory corruption? SV_ELWIDTH_TESTW(flw , 5, 4, SV_W_16BIT, SV_W_32BIT, testdata3, answer4) +*/ /* SV_ELWIDTH_TESTW(flw , 2, 4, SV_W_32BIT, SV_W_16BIT, testdata4, answer5) - SV_ELWIDTH_TESTW(flw , 6, 8, SV_W_DFLT, SV_W_16BIT, testdata6, answer5) - - SV_ELWIDTH_TEST( ld , 5, 8, SV_W_32BIT, SV_W_16BIT, testdata1, - 0x6757271769592919, 0xa5a5a5a5a5a52616, 0xa5a5a5a5a5a5a5a5 ) - SV_ELWIDTH_TEST( ld , 7, 8, SV_W_16BIT, SV_W_8BIT, testdata1, - 0xa557371779593919, 0xa5a5a5a5a5a5a5a5, 0xa5a5a5a5a5a5a5a5 ) - SV_ELWIDTH_TEST( ld , 11, 8, SV_W_8BIT, SV_W_16BIT, testdata1, - 0x0049003900290019, 0xff89007900690059, 0xa5a5003700270017 ) + SV_ELWIDTH_TESTW(flw , 6, 4, SV_W_DFLT, SV_W_16BIT, testdata6, answer5) */ RVTEST_PASS # Signal success. fail: @@ -156,6 +153,7 @@ testdata4: .float 1000.0 .float -1152.0 .float -82.0 + .float 0x0 .word 0xa5a5a5a5 .align 3