From dae172f8189b0fc9ae905f4018b2c4e064053349 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 15 Jun 2023 20:29:29 -0700 Subject: [PATCH] add sv.fmv/sv.fcvt tests --- src/openpower/test/fmv_fcvt/fmv_fcvt.py | 289 ++++++++++++++++++++---- 1 file changed, 246 insertions(+), 43 deletions(-) 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("