RVTEST_CODE_BEGIN # Start of test code.
SV_ELWIDTH_TEST( fld , 2, 8, SV_W_DFLT, SV_W_DFLT, testdata1, answer1 )
+ SV_ELWIDTH_TEST( fld , 3, 8, SV_W_DFLT, SV_W_DFLT, testdata1, answer2 )
+ SV_ELWIDTH_TEST( fld , 3, 8, SV_W_16BIT, SV_W_DFLT, testdata3, answer3)
+ SV_ELWIDTH_TEST( fld , 5, 8, SV_W_16BIT, SV_W_32BIT, testdata3, answer4)
/*
- SV_ELWIDTH_TEST( ld , 3, 8, SV_W_DFLT, SV_W_DFLT, testdata1,
- 0x8979695949392919, 0x8777675747372717, 0x8676665646362616 )
- SV_ELWIDTH_TEST( ld , 3, 8, SV_W_16BIT, SV_W_DFLT, testdata1,
- 0x0000000000002919, 0x0000000000004939, 0x0000000000006959 )
- SV_ELWIDTH_TEST( ld , 5, 8, SV_W_16BIT, SV_W_32BIT, testdata1,
- 0x0000493900002919, 0xffff897900006959, 0xa5a5a5a500002717 )
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,
.dword 0x8777675747372717
.dword 0xa5a5a5a5a5a5a5a5
+answer2:
+
+ .dword 0x8979695949392919
+ .dword 0x8777675747372717
+ .dword 0x8676665646362616
+
+testdata3:
+ .dword 0x63d03c0051805140
+ .dword 0x000000000000E480
+ .dword 0x8676665646362616
+ .dword 0x8272625242322212
+ .dword 0x8171615141312111
+ .dword 0x8373635343332313
+
+answer3:
+
+ .double 42.0
+ .double 44.0
+ .double 1.0
+
+answer4:
+
+ .float 42.0
+ .float 44.0
+ .float -1152.0
+ .float 1.0
+ .dword 0x00000000a5a5a5a5
+ .float 1000.0
+ .float 0.0
+
# Output data section.
RVTEST_DATA_BEGIN # Start of test output data region.
.align 3