From bb7075dc62da85f092fb638c121a7324b605a502 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 3 May 2023 18:04:36 -0700 Subject: [PATCH] fix non-zero assembly operands being zero --- src/openpower/decoder/isa/test_caller_setvl.py | 6 +++--- .../decoder/isa/test_caller_svp64_inssort.py | 2 +- .../decoder/isa/test_caller_svp64_parallel_reduce.py | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/openpower/decoder/isa/test_caller_setvl.py b/src/openpower/decoder/isa/test_caller_setvl.py index 11c94e2f..163a5afe 100644 --- a/src/openpower/decoder/isa/test_caller_setvl.py +++ b/src/openpower/decoder/isa/test_caller_setvl.py @@ -802,7 +802,7 @@ class DecoderTestCase(FHDLTestCase): """ isa = SVP64Asm(["setvl 0, 0, 2, 0, 1, 1", 'sv.add *1, *5, *9', - "setvl 3, 0, 0, 0, 0, 0", + "setvl 3, 0, 1, 0, 0, 0", ]) lst = list(isa) print("listing", lst) @@ -832,7 +832,7 @@ class DecoderTestCase(FHDLTestCase): "setvl. 0, 0, 1, 1, 0, 0", 'sv.add *1, *5, *9', "svstep. 3, 1, 0", # svstep (Rc=1) - "setvl 4, 0, 0, 0, 0, 0", # getvl + "setvl 4, 0, 1, 0, 0, 0", # getvl ]) sequence is as follows: * setvl sets VL=2 but also "Vertical First" mode. @@ -849,7 +849,7 @@ class DecoderTestCase(FHDLTestCase): "svstep. 0, 1, 0", # svstep (Rc=1) 'sv.add *1, *5, *9', "svstep. 3, 1, 0", # svstep (Rc=1) - "setvl 4, 0, 0, 0, 0, 0", # getvl + "setvl 4, 0, 1, 0, 0, 0", # getvl ]) lst = list(lst) diff --git a/src/openpower/decoder/isa/test_caller_svp64_inssort.py b/src/openpower/decoder/isa/test_caller_svp64_inssort.py index 454bf09d..86e706bb 100644 --- a/src/openpower/decoder/isa/test_caller_svp64_inssort.py +++ b/src/openpower/decoder/isa/test_caller_svp64_inssort.py @@ -206,7 +206,7 @@ class DecoderTestCase(FHDLTestCase): "sv.addi/m=1<>> lst = ["svshape 7, 0, 0, 7, 0", + """>>> lst = ["svshape 7, 1, 1, 7, 0", "svremap 31, 0, 1, 0, 0, 0, 0", "sv.add *0, *8, *16" ] REMAP add RT,RA,RB """ - lst = SVP64Asm(["svshape 7, 0, 0, 7, 0", + lst = SVP64Asm(["svshape 7, 1, 1, 7, 0", "svremap 31, 0, 1, 0, 0, 0, 0", "sv.add *0, *0, *0" ]) @@ -63,14 +63,14 @@ class DecoderTestCase(FHDLTestCase): self.assertEqual(v, expected[i]) def test_sv_remap2(self): - """>>> lst = ["svshape 7, 0, 0, 7, 0", + """>>> lst = ["svshape 7, 1, 1, 7, 0", "svremap 31, 1, 0, 0, 0, 0, 0", # different order "sv.subf *0, *8, *16" ] REMAP sv.subf RT,RA,RB - inverted application of RA/RB left/right due to subf """ - lst = SVP64Asm(["svshape 7, 0, 0, 7, 0", + lst = SVP64Asm(["svshape 7, 1, 1, 7, 0", "svremap 31, 1, 0, 0, 0, 0, 0", "sv.subf *0, *0, *0" ]) @@ -104,14 +104,14 @@ class DecoderTestCase(FHDLTestCase): expected[i] & 0xffffffffffffffff) def test_sv_remap3(self): - """>>> lst = ["svshape 7, 0, 0, 7, 0", + """>>> lst = ["svshape 7, 1, 1, 7, 0", "svremap 31, 0, 1, 0, 0, 0, 0", "sv.fcpsgn *0, *8, *16" ] REMAP sv.subf RT,RA,RB - inverted application of RA/RB left/right due to subf """ - lst = SVP64Asm(["svshape 7, 0, 0, 7, 0", + lst = SVP64Asm(["svshape 7, 1, 1, 7, 0", "svremap 31, 0, 1, 0, 0, 0, 0", "sv.fcpsgn *0, *0, *0" ]) -- 2.30.2