From: Jacob Lifshay Date: Thu, 30 Mar 2023 03:03:43 +0000 (-0700) Subject: add case_nego_ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4250d38de36b753fe6b13d7bff84094f20f7759;p=openpower-isa.git add case_nego_ --- 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"]