from openpower.consts import SVP64CROffs
from copy import deepcopy
from openpower.decoder.helpers import fp64toselectable
-from openpower.decoder.isafunctions.double2single import DOUBLE2SINGLE
from functools import reduce
import operator
def test_sv_remap1(self):
""">>> lst = ["svshape 2, 2, 3, 0, 0",
"svremap 31, 1, 2, 3, 0, 0, 0",
- "sv.fmadds 0.v, 8.v, 16.v, 0.v"
+ "sv.fmadds *0, *8, *16, *0"
]
REMAP fmadds FRT, FRA, FRC, FRB
"""
lst = SVP64Asm(["svshape 2, 2, 3, 0, 0",
"svremap 31, 1, 2, 3, 0, 0, 0",
- "sv.fmadds 0.v, 16.v, 32.v, 0.v"
+ "sv.fmadds *0, *16, *32, *0"
])
lst = list(lst)
def test_sv_remap2(self):
""">>> lst = ["svshape 5, 4, 3, 0, 0",
- "svremap 31, 1, 2, 3, 0, 0, 0, 0",
- "sv.fmadds 0.v, 8.v, 16.v, 0.v"
+ "svremap 31, 1, 2, 3, 0, 0, 0",
+ "sv.fmadds *0, *8, *16, *0"
]
REMAP fmadds FRT, FRA, FRC, FRB
"""
lst = SVP64Asm(["svshape 4, 3, 3, 0, 0",
- "svremap 31, 1, 2, 3, 0, 0, 0, 0",
- "sv.fmadds 0.v, 16.v, 32.v, 0.v"
+ "svremap 31, 1, 2, 3, 0, 0, 0",
+ "sv.fmadds *0, *16, *32, *0"
])
lst = list(lst)