pysvp64asm: fix sz handling
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 20 Sep 2022 14:14:03 +0000 (17:14 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 20 Sep 2022 14:14:03 +0000 (17:14 +0300)
src/openpower/sv/trans/svp64.py

index 625aedb4b27a16da3754b40d18e78a49bf230cdd..1fa68a3d4d4735b10182b4bd72be322c531c9d21 100644 (file)
@@ -1261,6 +1261,8 @@ class SVP64Asm:
 
         if is_bc:
             sv_mode = int(svp64_rm.mode[0, 1])
+            if src_zero:
+                svp64_rm.branch.sz = 1
 
         else:
             ######################################