still experimenting with sv flw elwidth unit test
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Nov 2018 07:26:48 +0000 (07:26 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Nov 2018 07:26:48 +0000 (07:26 +0000)
isa/rv64uf/sv_fld_elwidth.S

index 5590751f47cf33ce4112911ce45b5bbf31f51759..20cbeeba4739beb67cba125ac6d1b4d069053040 100644 (file)
@@ -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