must test fcvtfgs not fcvtfg for f32 test case
authorJacob Lifshay <programmerjake@gmail.com>
Sat, 20 May 2023 02:53:36 +0000 (19:53 -0700)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:18 +0000 (19:51 +0100)
src/openpower/test/fmv_fcvt/fmv_fcvt.py

index 5fb6f69d335c629dbfcbe7b48fe45971a95ff719..9e8914cce83cec67142a1cbba500f9162afaee9b 100644 (file)
@@ -519,8 +519,9 @@ class FMvFCvtCases(TestAccumulatorBase):
             expected_fp=expected_fp.hex(), expected_bits=hex(expected_bits),
             XX=fpscr.XX, FR=fpscr.FR, FPRF=bin(int(fpscr.FPRF)), CR1=bin(cr1),
         ):
+            s = "s" if bfp32 else ""
             rc_str = "." if Rc else ""
-            lst = [f"fcvtfg{rc_str} 0,3,{IT}"]
+            lst = [f"fcvtfg{s}{rc_str} 0,3,{IT}"]
             gprs = [0] * 32
             fprs = [0] * 32
             gprs[3] = inp