From 6b60d675899206a7c999a0a9eb83506ab93d3b4c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 23 Sep 2022 21:17:52 +0100 Subject: [PATCH] extra failfirst dis tests --- src/openpower/sv/trans/svp64.py | 4 ++-- src/openpower/sv/trans/test_pysvp64dis.py | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index 6037de94..a3e6f44b 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -669,8 +669,8 @@ def decode_bo(encoding): # barse-ackwards MSB0/LSB0. sigh mapped = pmap[encoding] si = SelectableInt(0, 3) - si[0] = mapped>>2 - si[1:3] = mapped & 3 + si[0] = mapped>>2 # inv + si[1:3] = mapped & 3 # CR return int(si) diff --git a/src/openpower/sv/trans/test_pysvp64dis.py b/src/openpower/sv/trans/test_pysvp64dis.py index 1ffc775e..cea9113c 100644 --- a/src/openpower/sv/trans/test_pysvp64dis.py +++ b/src/openpower/sv/trans/test_pysvp64dis.py @@ -227,6 +227,11 @@ class SVSTATETestCase(unittest.TestCase): expected = [ "sv.add./ff=eq *3,*7,*11", "sv.add./ff=ns *3,*7,*11", + "sv.add./ff=lt *3,*7,*11", + "sv.add./ff=ge *3,*7,*11", + "sv.add./ff=le *3,*7,*11", + "sv.add./ff=gt *3,*7,*11", + "sv.add./ff=ne *3,*7,*11", "sv.add./pr=eq *3,*7,*11", "sv.add./pr=ns *3,*7,*11", ] -- 2.30.2