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=8e74cbea8f749030a343b1e00a5b62c37611d6c9;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("