add repr function to CR field
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 7 Dec 2023 20:00:12 +0000 (20:00 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 7 Dec 2023 20:00:12 +0000 (20:00 +0000)
src/openpower/decoder/isa/test_caller_svp64_dd_ffirst.py

index c80e39fbf227fae548d3671d1dfe55d7681427ea..df399a671fb44f34d77c09b3150eac4dff1d42a7 100644 (file)
@@ -10,7 +10,9 @@ from openpower.insndb.asm import SVP64Asm
 
 
 def cmpd(x, y):
-    class CRfield: object
+    class CRfield:
+        def __repr__(self):
+            return "<lt %d gt %d eq %d>" % (self.lt, self.gt, self.eq)
     CRf = CRfield()
     CRf.lt = x < y
     CRf.gt = x > y