From cd33210ab1516db05cbbf178db02fe889b6cb4f5 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 29 Mar 2023 20:03:43 -0700 Subject: [PATCH] add case_nego_ --- src/openpower/test/alu/alu_cases.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/openpower/test/alu/alu_cases.py b/src/openpower/test/alu/alu_cases.py index 61fbe475..3a1799a4 100644 --- a/src/openpower/test/alu/alu_cases.py +++ b/src/openpower/test/alu/alu_cases.py @@ -87,6 +87,17 @@ def check_addmeo_subfmeo_matches_reference(instr, case_filter, out): class ALUTestCase(TestAccumulatorBase): + def case_nego_(self): + lst = [f"nego. 3, 4"] + initial_regs = [0] * 32 + initial_regs[4] = 0 + e = ExpectedState(pc=4) + e.intregs[3] = 0 + e.intregs[4] = 0 + e.so = 0 + e.ov = 0 + e.crregs[0] = 2 + self.add_case(Program(lst, bigendian), initial_regs, expected=e) def case_1_regression(self): lst = [f"add. 3, 1, 2"] -- 2.30.2