From: Jacob Lifshay Date: Fri, 16 Jun 2023 03:29:29 +0000 (-0700) Subject: add sv.fmv/sv.fcvt tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dae172f8189b0fc9ae905f4018b2c4e064053349;p=openpower-isa.git add sv.fmv/sv.fcvt tests --- diff --git a/src/openpower/test/fmv_fcvt/fmv_fcvt.py b/src/openpower/test/fmv_fcvt/fmv_fcvt.py index 140a9f42..108ca0e0 100644 --- a/src/openpower/test/fmv_fcvt/fmv_fcvt.py +++ b/src/openpower/test/fmv_fcvt/fmv_fcvt.py @@ -641,50 +641,253 @@ class FMvFCvtCases(TestAccumulatorBase): class SVP64FMvFCvtCases(TestAccumulatorBase): - @skip_case("FIXME: rewrite to fmv/fcvt tests") - def case_sv_fmaxmag19(self): - lst = list(SVP64Asm(["sv.fmaxmag19 *32,*64,*96"])) - gprs = [0] * 128 - fprs = [0] * 128 + def case_sv_fmvfg(self): + lst = list(SVP64Asm(["sv.fmvfg *3, *3"])) + gprs = [0] * 32 + fprs = [0] * 32 svstate = SVP64State() - svstate.vl = 32 - svstate.maxvl = 32 - r = range(svstate.vl) - for i, rev_i in zip(r, reversed(r)): - fprs[64 + i] = struct.unpack("