From: Luke Kenneth Casson Leighton Date: Thu, 21 Jul 2022 16:01:42 +0000 (+0100) Subject: sort out subvl unit test with expected results X-Git-Tag: sv_maxu_works-initial~235 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c42523e2cb7b0f95fe7a2da58689ebea3a4a2f85;p=openpower-isa.git sort out subvl unit test with expected results --- diff --git a/src/openpower/decoder/isa/test_caller_svp64_subvl.py b/src/openpower/decoder/isa/test_caller_svp64_subvl.py index f65cd609..3707de98 100644 --- a/src/openpower/decoder/isa/test_caller_svp64_subvl.py +++ b/src/openpower/decoder/isa/test_caller_svp64_subvl.py @@ -26,12 +26,12 @@ class DecoderTestCase(FHDLTestCase): # 1 = 5 + 9 => not to be touched (skipped) # 2 = 6 + 10 => 0x3334 = 0x2223+0x1111 # reg num 0 1 2 3 4 5 6 7 8 9 10 11 - # src r3=0b10 N Y N Y - # | | | | - # +-------+ | add + | - # | +-------+ add --+ - # | | - # dest r3=0b10 N Y + # src r3=0b10 | | N N Y Y N N Y Y + # | | | | | | + # | | +-------+-|-add-+ | + # | | | +-------+-add---+ + # | | | | + # dest r3=0b10 N N Y Y isa = SVP64Asm(['sv.add/vec2/m=r30 *1, *5, *9' ]) lst = list(isa) @@ -59,8 +59,8 @@ class DecoderTestCase(FHDLTestCase): print ("SVSTATE", bin(svstate.asint())) # copy before running expected_regs = deepcopy(initial_regs) - expected_regs[1] = 0xbeef - expected_regs[2] = 0x3334 + expected_regs[3] = initial_regs[7]+initial_regs[11] + expected_regs[4] = initial_regs[8]+initial_regs[12] with Program(lst, bigendian=False) as program: sim = self.run_tst_program(program, initial_regs, svstate)