macromem.isa revision 7644
16019SN/A// -*- mode:c++ -*- 26019SN/A 37134Sgblack@eecs.umich.edu// Copyright (c) 2010 ARM Limited 47134Sgblack@eecs.umich.edu// All rights reserved 57134Sgblack@eecs.umich.edu// 67134Sgblack@eecs.umich.edu// The license below extends only to copyright in the software and shall 77134Sgblack@eecs.umich.edu// not be construed as granting a license to any other intellectual 87134Sgblack@eecs.umich.edu// property including but not limited to intellectual property relating 97134Sgblack@eecs.umich.edu// to a hardware implementation of the functionality of the software 107134Sgblack@eecs.umich.edu// licensed hereunder. You may use the software subject to the license 117134Sgblack@eecs.umich.edu// terms below provided that you ensure that this notice is replicated 127134Sgblack@eecs.umich.edu// unmodified and in its entirety in all distributions of the software, 137134Sgblack@eecs.umich.edu// modified or unmodified, in source code or in binary form. 147134Sgblack@eecs.umich.edu// 156019SN/A// Copyright (c) 2007-2008 The Florida State University 166019SN/A// All rights reserved. 176019SN/A// 186019SN/A// Redistribution and use in source and binary forms, with or without 196019SN/A// modification, are permitted provided that the following conditions are 206019SN/A// met: redistributions of source code must retain the above copyright 216019SN/A// notice, this list of conditions and the following disclaimer; 226019SN/A// redistributions in binary form must reproduce the above copyright 236019SN/A// notice, this list of conditions and the following disclaimer in the 246019SN/A// documentation and/or other materials provided with the distribution; 256019SN/A// neither the name of the copyright holders nor the names of its 266019SN/A// contributors may be used to endorse or promote products derived from 276019SN/A// this software without specific prior written permission. 286019SN/A// 296019SN/A// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 306019SN/A// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 316019SN/A// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 326019SN/A// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 336019SN/A// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 346019SN/A// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 356019SN/A// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 366019SN/A// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 376019SN/A// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 386019SN/A// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 396019SN/A// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 406019SN/A// 416019SN/A// Authors: Stephen Hines 426308SN/A// Gabe Black 436308SN/A 446309SN/A//////////////////////////////////////////////////////////////////// 456309SN/A// 466309SN/A// Load/store microops 476309SN/A// 486309SN/A 497134Sgblack@eecs.umich.edulet {{ 507296Sgblack@eecs.umich.edu microLdrUopCode = "IWRa = cSwap(Mem.uw, ((CPSR)Cpsr).e);" 516309SN/A microLdrUopIop = InstObjParams('ldr_uop', 'MicroLdrUop', 526309SN/A 'MicroMemOp', 537296Sgblack@eecs.umich.edu {'memacc_code': microLdrUopCode, 547134Sgblack@eecs.umich.edu 'ea_code': 'EA = Rb + (up ? imm : -imm);', 556309SN/A 'predicate_test': predicateTest}, 566309SN/A ['IsMicroop']) 576309SN/A 587342Sgblack@eecs.umich.edu microLdrFpUopCode = "Fa.uw = cSwap(Mem.uw, ((CPSR)Cpsr).e);" 597174Sgblack@eecs.umich.edu microLdrFpUopIop = InstObjParams('ldrfp_uop', 'MicroLdrFpUop', 607639Sgblack@eecs.umich.edu 'MicroMemOp', 617639Sgblack@eecs.umich.edu {'memacc_code': microLdrFpUopCode, 627644Sali.saidi@arm.com 'ea_code': vfpEnabledCheckCode + 637639Sgblack@eecs.umich.edu 'EA = Rb + (up ? imm : -imm);', 647639Sgblack@eecs.umich.edu 'predicate_test': predicateTest}, 657639Sgblack@eecs.umich.edu ['IsMicroop']) 667639Sgblack@eecs.umich.edu 677639Sgblack@eecs.umich.edu microLdrDBFpUopCode = "Fa.uw = cSwap(Mem.uw, ((CPSR)Cpsr).e);" 687639Sgblack@eecs.umich.edu microLdrDBFpUopIop = InstObjParams('ldrfp_uop', 'MicroLdrDBFpUop', 697639Sgblack@eecs.umich.edu 'MicroMemOp', 707639Sgblack@eecs.umich.edu {'memacc_code': microLdrFpUopCode, 717644Sali.saidi@arm.com 'ea_code': vfpEnabledCheckCode + ''' 727639Sgblack@eecs.umich.edu EA = Rb + (up ? imm : -imm) + 737639Sgblack@eecs.umich.edu (((CPSR)Cpsr).e ? 4 : 0); 747639Sgblack@eecs.umich.edu ''', 757639Sgblack@eecs.umich.edu 'predicate_test': predicateTest}, 767639Sgblack@eecs.umich.edu ['IsMicroop']) 777639Sgblack@eecs.umich.edu 787639Sgblack@eecs.umich.edu microLdrDTFpUopCode = "Fa.uw = cSwap(Mem.uw, ((CPSR)Cpsr).e);" 797639Sgblack@eecs.umich.edu microLdrDTFpUopIop = InstObjParams('ldrfp_uop', 'MicroLdrDTFpUop', 807639Sgblack@eecs.umich.edu 'MicroMemOp', 817639Sgblack@eecs.umich.edu {'memacc_code': microLdrFpUopCode, 827644Sali.saidi@arm.com 'ea_code': vfpEnabledCheckCode + ''' 837639Sgblack@eecs.umich.edu EA = Rb + (up ? imm : -imm) - 847639Sgblack@eecs.umich.edu (((CPSR)Cpsr).e ? 4 : 0); 857639Sgblack@eecs.umich.edu ''', 867639Sgblack@eecs.umich.edu 'predicate_test': predicateTest}, 877639Sgblack@eecs.umich.edu ['IsMicroop']) 887174Sgblack@eecs.umich.edu 896754SN/A microLdrRetUopCode = ''' 907296Sgblack@eecs.umich.edu CPSR cpsr = Cpsr; 917400SAli.Saidi@ARM.com SCTLR sctlr = Sctlr; 927134Sgblack@eecs.umich.edu uint32_t newCpsr = 937400SAli.Saidi@ARM.com cpsrWriteByInstr(cpsr | CondCodes, Spsr, 0xF, true, sctlr.nmfi); 947134Sgblack@eecs.umich.edu Cpsr = ~CondCodesMask & newCpsr; 957134Sgblack@eecs.umich.edu CondCodes = CondCodesMask & newCpsr; 967296Sgblack@eecs.umich.edu IWNPC = cSwap(Mem.uw, cpsr.e) | ((Spsr & 0x20) ? 1 : 0); 976754SN/A ''' 986754SN/A microLdrRetUopIop = InstObjParams('ldr_ret_uop', 'MicroLdrRetUop', 996754SN/A 'MicroMemOp', 1006754SN/A {'memacc_code': microLdrRetUopCode, 1016754SN/A 'ea_code': 1027134Sgblack@eecs.umich.edu 'EA = Rb + (up ? imm : -imm);', 1037422Sgblack@eecs.umich.edu 'predicate_test': condPredicateTest}, 1046754SN/A ['IsMicroop']) 1056754SN/A 1067296Sgblack@eecs.umich.edu microStrUopCode = "Mem = cSwap(Ra.uw, ((CPSR)Cpsr).e);" 1076309SN/A microStrUopIop = InstObjParams('str_uop', 'MicroStrUop', 1086309SN/A 'MicroMemOp', 1097296Sgblack@eecs.umich.edu {'memacc_code': microStrUopCode, 1107303Sgblack@eecs.umich.edu 'postacc_code': "", 1117134Sgblack@eecs.umich.edu 'ea_code': 'EA = Rb + (up ? imm : -imm);', 1126309SN/A 'predicate_test': predicateTest}, 1136309SN/A ['IsMicroop']) 1146309SN/A 1157296Sgblack@eecs.umich.edu microStrFpUopCode = "Mem = cSwap(Fa.uw, ((CPSR)Cpsr).e);" 1167174Sgblack@eecs.umich.edu microStrFpUopIop = InstObjParams('strfp_uop', 'MicroStrFpUop', 1177174Sgblack@eecs.umich.edu 'MicroMemOp', 1187296Sgblack@eecs.umich.edu {'memacc_code': microStrFpUopCode, 1197303Sgblack@eecs.umich.edu 'postacc_code': "", 1207644Sali.saidi@arm.com 'ea_code': vfpEnabledCheckCode + 1217644Sali.saidi@arm.com 'EA = Rb + (up ? imm : -imm);', 1227174Sgblack@eecs.umich.edu 'predicate_test': predicateTest}, 1237174Sgblack@eecs.umich.edu ['IsMicroop']) 1247174Sgblack@eecs.umich.edu 1257639Sgblack@eecs.umich.edu microStrDBFpUopCode = "Mem = cSwap(Fa.uw, ((CPSR)Cpsr).e);" 1267639Sgblack@eecs.umich.edu microStrDBFpUopIop = InstObjParams('strfp_uop', 'MicroStrDBFpUop', 1277639Sgblack@eecs.umich.edu 'MicroMemOp', 1287639Sgblack@eecs.umich.edu {'memacc_code': microStrFpUopCode, 1297639Sgblack@eecs.umich.edu 'postacc_code': "", 1307644Sali.saidi@arm.com 'ea_code': vfpEnabledCheckCode + ''' 1317639Sgblack@eecs.umich.edu EA = Rb + (up ? imm : -imm) + 1327639Sgblack@eecs.umich.edu (((CPSR)Cpsr).e ? 4 : 0); 1337639Sgblack@eecs.umich.edu ''', 1347639Sgblack@eecs.umich.edu 'predicate_test': predicateTest}, 1357639Sgblack@eecs.umich.edu ['IsMicroop']) 1367639Sgblack@eecs.umich.edu 1377639Sgblack@eecs.umich.edu microStrDTFpUopCode = "Mem = cSwap(Fa.uw, ((CPSR)Cpsr).e);" 1387639Sgblack@eecs.umich.edu microStrDTFpUopIop = InstObjParams('strfp_uop', 'MicroStrDTFpUop', 1397639Sgblack@eecs.umich.edu 'MicroMemOp', 1407639Sgblack@eecs.umich.edu {'memacc_code': microStrFpUopCode, 1417639Sgblack@eecs.umich.edu 'postacc_code': "", 1427644Sali.saidi@arm.com 'ea_code': vfpEnabledCheckCode + ''' 1437639Sgblack@eecs.umich.edu EA = Rb + (up ? imm : -imm) - 1447639Sgblack@eecs.umich.edu (((CPSR)Cpsr).e ? 4 : 0); 1457639Sgblack@eecs.umich.edu ''', 1467639Sgblack@eecs.umich.edu 'predicate_test': predicateTest}, 1477639Sgblack@eecs.umich.edu ['IsMicroop']) 1487639Sgblack@eecs.umich.edu 1497174Sgblack@eecs.umich.edu header_output = decoder_output = exec_output = '' 1507174Sgblack@eecs.umich.edu 1517639Sgblack@eecs.umich.edu loadIops = (microLdrUopIop, microLdrRetUopIop, 1527639Sgblack@eecs.umich.edu microLdrFpUopIop, microLdrDBFpUopIop, microLdrDTFpUopIop) 1537639Sgblack@eecs.umich.edu storeIops = (microStrUopIop, microStrFpUopIop, 1547639Sgblack@eecs.umich.edu microStrDBFpUopIop, microStrDTFpUopIop) 1557174Sgblack@eecs.umich.edu for iop in loadIops + storeIops: 1567174Sgblack@eecs.umich.edu header_output += MicroMemDeclare.subst(iop) 1577174Sgblack@eecs.umich.edu decoder_output += MicroMemConstructor.subst(iop) 1587174Sgblack@eecs.umich.edu for iop in loadIops: 1597174Sgblack@eecs.umich.edu exec_output += LoadExecute.subst(iop) + \ 1607174Sgblack@eecs.umich.edu LoadInitiateAcc.subst(iop) + \ 1617174Sgblack@eecs.umich.edu LoadCompleteAcc.subst(iop) 1627174Sgblack@eecs.umich.edu for iop in storeIops: 1637174Sgblack@eecs.umich.edu exec_output += StoreExecute.subst(iop) + \ 1647174Sgblack@eecs.umich.edu StoreInitiateAcc.subst(iop) + \ 1657174Sgblack@eecs.umich.edu StoreCompleteAcc.subst(iop) 1666309SN/A}}; 1676308SN/A 1687639Sgblack@eecs.umich.edulet {{ 1697639Sgblack@eecs.umich.edu exec_output = header_output = '' 1707639Sgblack@eecs.umich.edu 1717639Sgblack@eecs.umich.edu eaCode = 'EA = Ra + imm;' 1727639Sgblack@eecs.umich.edu 1737639Sgblack@eecs.umich.edu for size in (1, 2, 3, 4, 6, 8, 12, 16): 1747639Sgblack@eecs.umich.edu # Set up the memory access. 1757639Sgblack@eecs.umich.edu regs = (size + 3) // 4 1767639Sgblack@eecs.umich.edu subst = { "size" : size, "regs" : regs } 1777639Sgblack@eecs.umich.edu memDecl = ''' 1787639Sgblack@eecs.umich.edu union MemUnion { 1797639Sgblack@eecs.umich.edu uint8_t bytes[%(size)d]; 1807639Sgblack@eecs.umich.edu Element elements[%(size)d / sizeof(Element)]; 1817639Sgblack@eecs.umich.edu uint32_t floatRegBits[%(regs)d]; 1827639Sgblack@eecs.umich.edu }; 1837639Sgblack@eecs.umich.edu ''' % subst 1847639Sgblack@eecs.umich.edu 1857639Sgblack@eecs.umich.edu # Do endian conversion for all the elements. 1867639Sgblack@eecs.umich.edu convCode = ''' 1877639Sgblack@eecs.umich.edu const unsigned eCount = sizeof(memUnion.elements) / 1887639Sgblack@eecs.umich.edu sizeof(memUnion.elements[0]); 1897639Sgblack@eecs.umich.edu if (((CPSR)Cpsr).e) { 1907639Sgblack@eecs.umich.edu for (unsigned i = 0; i < eCount; i++) { 1917639Sgblack@eecs.umich.edu memUnion.elements[i] = gtobe(memUnion.elements[i]); 1927639Sgblack@eecs.umich.edu } 1937639Sgblack@eecs.umich.edu } else { 1947639Sgblack@eecs.umich.edu for (unsigned i = 0; i < eCount; i++) { 1957639Sgblack@eecs.umich.edu memUnion.elements[i] = gtole(memUnion.elements[i]); 1967639Sgblack@eecs.umich.edu } 1977639Sgblack@eecs.umich.edu } 1987639Sgblack@eecs.umich.edu ''' 1997639Sgblack@eecs.umich.edu 2007639Sgblack@eecs.umich.edu # Offload everything into registers 2017639Sgblack@eecs.umich.edu regSetCode = '' 2027639Sgblack@eecs.umich.edu for reg in range(regs): 2037639Sgblack@eecs.umich.edu mask = '' 2047639Sgblack@eecs.umich.edu if reg == regs - 1: 2057639Sgblack@eecs.umich.edu mask = ' & mask(%d)' % (32 - 8 * (regs * 4 - size)) 2067639Sgblack@eecs.umich.edu regSetCode += ''' 2077639Sgblack@eecs.umich.edu FpDestP%(reg)d.uw = gtoh(memUnion.floatRegBits[%(reg)d])%(mask)s; 2087639Sgblack@eecs.umich.edu ''' % { "reg" : reg, "mask" : mask } 2097639Sgblack@eecs.umich.edu 2107639Sgblack@eecs.umich.edu # Pull everything in from registers 2117639Sgblack@eecs.umich.edu regGetCode = '' 2127639Sgblack@eecs.umich.edu for reg in range(regs): 2137639Sgblack@eecs.umich.edu regGetCode += ''' 2147639Sgblack@eecs.umich.edu memUnion.floatRegBits[%(reg)d] = htog(FpDestP%(reg)d.uw); 2157639Sgblack@eecs.umich.edu ''' % { "reg" : reg } 2167639Sgblack@eecs.umich.edu 2177639Sgblack@eecs.umich.edu loadMemAccCode = convCode + regSetCode 2187639Sgblack@eecs.umich.edu storeMemAccCode = regGetCode + convCode 2197639Sgblack@eecs.umich.edu 2207639Sgblack@eecs.umich.edu loadIop = InstObjParams('ldrneon%(size)d_uop' % subst, 2217639Sgblack@eecs.umich.edu 'MicroLdrNeon%(size)dUop' % subst, 2227639Sgblack@eecs.umich.edu 'MicroNeonMemOp', 2237639Sgblack@eecs.umich.edu { 'mem_decl' : memDecl, 2247639Sgblack@eecs.umich.edu 'size' : size, 2257639Sgblack@eecs.umich.edu 'memacc_code' : loadMemAccCode, 2267644Sali.saidi@arm.com 'ea_code' : simdEnabledCheckCode + eaCode, 2277639Sgblack@eecs.umich.edu 'predicate_test' : predicateTest }, 2287639Sgblack@eecs.umich.edu [ 'IsMicroop', 'IsMemRef', 'IsLoad' ]) 2297639Sgblack@eecs.umich.edu storeIop = InstObjParams('strneon%(size)d_uop' % subst, 2307639Sgblack@eecs.umich.edu 'MicroStrNeon%(size)dUop' % subst, 2317639Sgblack@eecs.umich.edu 'MicroNeonMemOp', 2327639Sgblack@eecs.umich.edu { 'mem_decl' : memDecl, 2337639Sgblack@eecs.umich.edu 'size' : size, 2347639Sgblack@eecs.umich.edu 'memacc_code' : storeMemAccCode, 2357644Sali.saidi@arm.com 'ea_code' : simdEnabledCheckCode + eaCode, 2367639Sgblack@eecs.umich.edu 'predicate_test' : predicateTest }, 2377639Sgblack@eecs.umich.edu [ 'IsMicroop', 'IsMemRef', 'IsStore' ]) 2387639Sgblack@eecs.umich.edu 2397639Sgblack@eecs.umich.edu exec_output += NeonLoadExecute.subst(loadIop) + \ 2407639Sgblack@eecs.umich.edu NeonLoadInitiateAcc.subst(loadIop) + \ 2417639Sgblack@eecs.umich.edu NeonLoadCompleteAcc.subst(loadIop) + \ 2427639Sgblack@eecs.umich.edu NeonStoreExecute.subst(storeIop) + \ 2437639Sgblack@eecs.umich.edu NeonStoreInitiateAcc.subst(storeIop) + \ 2447639Sgblack@eecs.umich.edu NeonStoreCompleteAcc.subst(storeIop) 2457639Sgblack@eecs.umich.edu header_output += MicroNeonMemDeclare.subst(loadIop) + \ 2467639Sgblack@eecs.umich.edu MicroNeonMemDeclare.subst(storeIop) 2477639Sgblack@eecs.umich.edu}}; 2487639Sgblack@eecs.umich.edu 2497639Sgblack@eecs.umich.edulet {{ 2507639Sgblack@eecs.umich.edu exec_output = '' 2517639Sgblack@eecs.umich.edu for eSize, type in (1, 'uint8_t'), \ 2527639Sgblack@eecs.umich.edu (2, 'uint16_t'), \ 2537639Sgblack@eecs.umich.edu (4, 'uint32_t'), \ 2547639Sgblack@eecs.umich.edu (8, 'uint64_t'): 2557639Sgblack@eecs.umich.edu size = eSize 2567639Sgblack@eecs.umich.edu # An instruction handles no more than 16 bytes and no more than 2577639Sgblack@eecs.umich.edu # 4 elements, or the number of elements needed to fill 8 or 16 bytes. 2587639Sgblack@eecs.umich.edu sizes = set((16, 8)) 2597639Sgblack@eecs.umich.edu for count in 1, 2, 3, 4: 2607639Sgblack@eecs.umich.edu size = count * eSize 2617639Sgblack@eecs.umich.edu if size <= 16: 2627639Sgblack@eecs.umich.edu sizes.add(size) 2637639Sgblack@eecs.umich.edu for size in sizes: 2647639Sgblack@eecs.umich.edu substDict = { 2657639Sgblack@eecs.umich.edu "class_name" : "MicroLdrNeon%dUop" % size, 2667639Sgblack@eecs.umich.edu "targs" : type 2677639Sgblack@eecs.umich.edu } 2687639Sgblack@eecs.umich.edu exec_output += MicroNeonMemExecDeclare.subst(substDict) 2697639Sgblack@eecs.umich.edu substDict["class_name"] = "MicroStrNeon%dUop" % size 2707639Sgblack@eecs.umich.edu exec_output += MicroNeonMemExecDeclare.subst(substDict) 2717639Sgblack@eecs.umich.edu size += eSize 2727639Sgblack@eecs.umich.edu}}; 2737639Sgblack@eecs.umich.edu 2747639Sgblack@eecs.umich.edu//////////////////////////////////////////////////////////////////// 2757639Sgblack@eecs.umich.edu// 2767639Sgblack@eecs.umich.edu// Neon (de)interlacing microops 2777639Sgblack@eecs.umich.edu// 2787639Sgblack@eecs.umich.edu 2797639Sgblack@eecs.umich.edulet {{ 2807639Sgblack@eecs.umich.edu header_output = exec_output = '' 2817639Sgblack@eecs.umich.edu for dRegs in (2, 3, 4): 2827639Sgblack@eecs.umich.edu loadConv = '' 2837639Sgblack@eecs.umich.edu unloadConv = '' 2847639Sgblack@eecs.umich.edu for dReg in range(dRegs): 2857639Sgblack@eecs.umich.edu loadConv += ''' 2867639Sgblack@eecs.umich.edu conv1.cRegs[%(sReg0)d] = htog(FpOp1P%(sReg0)d.uw); 2877639Sgblack@eecs.umich.edu conv1.cRegs[%(sReg1)d] = htog(FpOp1P%(sReg1)d.uw); 2887639Sgblack@eecs.umich.edu ''' % { "sReg0" : (dReg * 2), "sReg1" : (dReg * 2 + 1) } 2897639Sgblack@eecs.umich.edu unloadConv += ''' 2907639Sgblack@eecs.umich.edu FpDestS%(dReg)dP0.uw = gtoh(conv2.cRegs[2 * %(dReg)d + 0]); 2917639Sgblack@eecs.umich.edu FpDestS%(dReg)dP1.uw = gtoh(conv2.cRegs[2 * %(dReg)d + 1]); 2927639Sgblack@eecs.umich.edu ''' % { "dReg" : dReg } 2937639Sgblack@eecs.umich.edu microDeintNeonCode = ''' 2947639Sgblack@eecs.umich.edu const unsigned dRegs = %(dRegs)d; 2957639Sgblack@eecs.umich.edu const unsigned regs = 2 * dRegs; 2967639Sgblack@eecs.umich.edu const unsigned perDReg = (2 * sizeof(FloatRegBits)) / 2977639Sgblack@eecs.umich.edu sizeof(Element); 2987639Sgblack@eecs.umich.edu union convStruct { 2997639Sgblack@eecs.umich.edu FloatRegBits cRegs[regs]; 3007639Sgblack@eecs.umich.edu Element elements[dRegs * perDReg]; 3017639Sgblack@eecs.umich.edu } conv1, conv2; 3027639Sgblack@eecs.umich.edu 3037639Sgblack@eecs.umich.edu %(loadConv)s 3047639Sgblack@eecs.umich.edu 3057639Sgblack@eecs.umich.edu unsigned srcElem = 0; 3067639Sgblack@eecs.umich.edu for (unsigned destOffset = 0; 3077639Sgblack@eecs.umich.edu destOffset < perDReg; destOffset++) { 3087639Sgblack@eecs.umich.edu for (unsigned dReg = 0; dReg < dRegs; dReg++) { 3097639Sgblack@eecs.umich.edu conv2.elements[dReg * perDReg + destOffset] = 3107639Sgblack@eecs.umich.edu conv1.elements[srcElem++]; 3117639Sgblack@eecs.umich.edu } 3127639Sgblack@eecs.umich.edu } 3137639Sgblack@eecs.umich.edu 3147639Sgblack@eecs.umich.edu %(unloadConv)s 3157639Sgblack@eecs.umich.edu ''' % { "dRegs" : dRegs, 3167639Sgblack@eecs.umich.edu "loadConv" : loadConv, 3177639Sgblack@eecs.umich.edu "unloadConv" : unloadConv } 3187639Sgblack@eecs.umich.edu microDeintNeonIop = \ 3197639Sgblack@eecs.umich.edu InstObjParams('deintneon%duop' % (dRegs * 2), 3207639Sgblack@eecs.umich.edu 'MicroDeintNeon%dUop' % (dRegs * 2), 3217639Sgblack@eecs.umich.edu 'MicroNeonMixOp', 3227639Sgblack@eecs.umich.edu { 'predicate_test': predicateTest, 3237639Sgblack@eecs.umich.edu 'code' : microDeintNeonCode }, 3247639Sgblack@eecs.umich.edu ['IsMicroop']) 3257639Sgblack@eecs.umich.edu header_output += MicroNeonMixDeclare.subst(microDeintNeonIop) 3267639Sgblack@eecs.umich.edu exec_output += MicroNeonMixExecute.subst(microDeintNeonIop) 3277639Sgblack@eecs.umich.edu 3287639Sgblack@eecs.umich.edu loadConv = '' 3297639Sgblack@eecs.umich.edu unloadConv = '' 3307639Sgblack@eecs.umich.edu for dReg in range(dRegs): 3317639Sgblack@eecs.umich.edu loadConv += ''' 3327639Sgblack@eecs.umich.edu conv1.cRegs[2 * %(dReg)d + 0] = htog(FpOp1S%(dReg)dP0.uw); 3337639Sgblack@eecs.umich.edu conv1.cRegs[2 * %(dReg)d + 1] = htog(FpOp1S%(dReg)dP1.uw); 3347639Sgblack@eecs.umich.edu ''' % { "dReg" : dReg } 3357639Sgblack@eecs.umich.edu unloadConv += ''' 3367639Sgblack@eecs.umich.edu FpDestP%(sReg0)d.uw = gtoh(conv2.cRegs[%(sReg0)d]); 3377639Sgblack@eecs.umich.edu FpDestP%(sReg1)d.uw = gtoh(conv2.cRegs[%(sReg1)d]); 3387639Sgblack@eecs.umich.edu ''' % { "sReg0" : (dReg * 2), "sReg1" : (dReg * 2 + 1) } 3397639Sgblack@eecs.umich.edu microInterNeonCode = ''' 3407639Sgblack@eecs.umich.edu const unsigned dRegs = %(dRegs)d; 3417639Sgblack@eecs.umich.edu const unsigned regs = 2 * dRegs; 3427639Sgblack@eecs.umich.edu const unsigned perDReg = (2 * sizeof(FloatRegBits)) / 3437639Sgblack@eecs.umich.edu sizeof(Element); 3447639Sgblack@eecs.umich.edu union convStruct { 3457639Sgblack@eecs.umich.edu FloatRegBits cRegs[regs]; 3467639Sgblack@eecs.umich.edu Element elements[dRegs * perDReg]; 3477639Sgblack@eecs.umich.edu } conv1, conv2; 3487639Sgblack@eecs.umich.edu 3497639Sgblack@eecs.umich.edu %(loadConv)s 3507639Sgblack@eecs.umich.edu 3517639Sgblack@eecs.umich.edu unsigned destElem = 0; 3527639Sgblack@eecs.umich.edu for (unsigned srcOffset = 0; 3537639Sgblack@eecs.umich.edu srcOffset < perDReg; srcOffset++) { 3547639Sgblack@eecs.umich.edu for (unsigned dReg = 0; dReg < dRegs; dReg++) { 3557639Sgblack@eecs.umich.edu conv2.elements[destElem++] = 3567639Sgblack@eecs.umich.edu conv1.elements[dReg * perDReg + srcOffset]; 3577639Sgblack@eecs.umich.edu } 3587639Sgblack@eecs.umich.edu } 3597639Sgblack@eecs.umich.edu 3607639Sgblack@eecs.umich.edu %(unloadConv)s 3617639Sgblack@eecs.umich.edu ''' % { "dRegs" : dRegs, 3627639Sgblack@eecs.umich.edu "loadConv" : loadConv, 3637639Sgblack@eecs.umich.edu "unloadConv" : unloadConv } 3647639Sgblack@eecs.umich.edu microInterNeonIop = \ 3657639Sgblack@eecs.umich.edu InstObjParams('interneon%duop' % (dRegs * 2), 3667639Sgblack@eecs.umich.edu 'MicroInterNeon%dUop' % (dRegs * 2), 3677639Sgblack@eecs.umich.edu 'MicroNeonMixOp', 3687639Sgblack@eecs.umich.edu { 'predicate_test': predicateTest, 3697639Sgblack@eecs.umich.edu 'code' : microInterNeonCode }, 3707639Sgblack@eecs.umich.edu ['IsMicroop']) 3717639Sgblack@eecs.umich.edu header_output += MicroNeonMixDeclare.subst(microInterNeonIop) 3727639Sgblack@eecs.umich.edu exec_output += MicroNeonMixExecute.subst(microInterNeonIop) 3737639Sgblack@eecs.umich.edu}}; 3747639Sgblack@eecs.umich.edu 3757639Sgblack@eecs.umich.edulet {{ 3767639Sgblack@eecs.umich.edu exec_output = '' 3777639Sgblack@eecs.umich.edu for type in ('uint8_t', 'uint16_t', 'uint32_t', 'uint64_t'): 3787639Sgblack@eecs.umich.edu for dRegs in (2, 3, 4): 3797639Sgblack@eecs.umich.edu Name = "MicroDeintNeon%dUop" % (dRegs * 2) 3807639Sgblack@eecs.umich.edu substDict = { "class_name" : Name, "targs" : type } 3817639Sgblack@eecs.umich.edu exec_output += MicroNeonExecDeclare.subst(substDict) 3827639Sgblack@eecs.umich.edu Name = "MicroInterNeon%dUop" % (dRegs * 2) 3837639Sgblack@eecs.umich.edu substDict = { "class_name" : Name, "targs" : type } 3847639Sgblack@eecs.umich.edu exec_output += MicroNeonExecDeclare.subst(substDict) 3857639Sgblack@eecs.umich.edu}}; 3867639Sgblack@eecs.umich.edu 3877639Sgblack@eecs.umich.edu//////////////////////////////////////////////////////////////////// 3887639Sgblack@eecs.umich.edu// 3897639Sgblack@eecs.umich.edu// Neon microops to pack/unpack a single lane 3907639Sgblack@eecs.umich.edu// 3917639Sgblack@eecs.umich.edu 3927639Sgblack@eecs.umich.edulet {{ 3937639Sgblack@eecs.umich.edu header_output = exec_output = '' 3947639Sgblack@eecs.umich.edu for sRegs in 1, 2: 3957639Sgblack@eecs.umich.edu baseLoadRegs = '' 3967639Sgblack@eecs.umich.edu for reg in range(sRegs): 3977639Sgblack@eecs.umich.edu baseLoadRegs += ''' 3987639Sgblack@eecs.umich.edu sourceRegs.fRegs[%(reg0)d] = htog(FpOp1P%(reg0)d.uw); 3997639Sgblack@eecs.umich.edu sourceRegs.fRegs[%(reg1)d] = htog(FpOp1P%(reg1)d.uw); 4007639Sgblack@eecs.umich.edu ''' % { "reg0" : (2 * reg + 0), 4017639Sgblack@eecs.umich.edu "reg1" : (2 * reg + 1) } 4027639Sgblack@eecs.umich.edu for dRegs in range(sRegs, 5): 4037639Sgblack@eecs.umich.edu unloadRegs = '' 4047639Sgblack@eecs.umich.edu loadRegs = baseLoadRegs 4057639Sgblack@eecs.umich.edu for reg in range(dRegs): 4067639Sgblack@eecs.umich.edu loadRegs += ''' 4077639Sgblack@eecs.umich.edu destRegs[%(reg)d].fRegs[0] = htog(FpDestS%(reg)dP0.uw); 4087639Sgblack@eecs.umich.edu destRegs[%(reg)d].fRegs[1] = htog(FpDestS%(reg)dP1.uw); 4097639Sgblack@eecs.umich.edu ''' % { "reg" : reg } 4107639Sgblack@eecs.umich.edu unloadRegs += ''' 4117639Sgblack@eecs.umich.edu FpDestS%(reg)dP0.uw = gtoh(destRegs[%(reg)d].fRegs[0]); 4127639Sgblack@eecs.umich.edu FpDestS%(reg)dP1.uw = gtoh(destRegs[%(reg)d].fRegs[1]); 4137639Sgblack@eecs.umich.edu ''' % { "reg" : reg } 4147639Sgblack@eecs.umich.edu microUnpackNeonCode = ''' 4157639Sgblack@eecs.umich.edu const unsigned perDReg = (2 * sizeof(FloatRegBits)) / 4167639Sgblack@eecs.umich.edu sizeof(Element); 4177639Sgblack@eecs.umich.edu 4187639Sgblack@eecs.umich.edu union SourceRegs { 4197639Sgblack@eecs.umich.edu FloatRegBits fRegs[2 * %(sRegs)d]; 4207639Sgblack@eecs.umich.edu Element elements[%(sRegs)d * perDReg]; 4217639Sgblack@eecs.umich.edu } sourceRegs; 4227639Sgblack@eecs.umich.edu 4237639Sgblack@eecs.umich.edu union DestReg { 4247639Sgblack@eecs.umich.edu FloatRegBits fRegs[2]; 4257639Sgblack@eecs.umich.edu Element elements[perDReg]; 4267639Sgblack@eecs.umich.edu } destRegs[%(dRegs)d]; 4277639Sgblack@eecs.umich.edu 4287639Sgblack@eecs.umich.edu %(loadRegs)s 4297639Sgblack@eecs.umich.edu 4307639Sgblack@eecs.umich.edu for (unsigned i = 0; i < %(dRegs)d; i++) { 4317639Sgblack@eecs.umich.edu destRegs[i].elements[lane] = sourceRegs.elements[i]; 4327639Sgblack@eecs.umich.edu } 4337639Sgblack@eecs.umich.edu 4347639Sgblack@eecs.umich.edu %(unloadRegs)s 4357639Sgblack@eecs.umich.edu ''' % { "sRegs" : sRegs, "dRegs" : dRegs, 4367639Sgblack@eecs.umich.edu "loadRegs" : loadRegs, "unloadRegs" : unloadRegs } 4377639Sgblack@eecs.umich.edu 4387639Sgblack@eecs.umich.edu microUnpackNeonIop = \ 4397639Sgblack@eecs.umich.edu InstObjParams('unpackneon%dto%duop' % (sRegs * 2, dRegs * 2), 4407639Sgblack@eecs.umich.edu 'MicroUnpackNeon%dto%dUop' % 4417639Sgblack@eecs.umich.edu (sRegs * 2, dRegs * 2), 4427639Sgblack@eecs.umich.edu 'MicroNeonMixLaneOp', 4437639Sgblack@eecs.umich.edu { 'predicate_test': predicateTest, 4447639Sgblack@eecs.umich.edu 'code' : microUnpackNeonCode }, 4457639Sgblack@eecs.umich.edu ['IsMicroop']) 4467639Sgblack@eecs.umich.edu header_output += MicroNeonMixLaneDeclare.subst(microUnpackNeonIop) 4477639Sgblack@eecs.umich.edu exec_output += MicroNeonMixExecute.subst(microUnpackNeonIop) 4487639Sgblack@eecs.umich.edu 4497639Sgblack@eecs.umich.edu for sRegs in 1, 2: 4507639Sgblack@eecs.umich.edu loadRegs = '' 4517639Sgblack@eecs.umich.edu for reg in range(sRegs): 4527639Sgblack@eecs.umich.edu loadRegs += ''' 4537639Sgblack@eecs.umich.edu sourceRegs.fRegs[%(reg0)d] = htog(FpOp1P%(reg0)d.uw); 4547639Sgblack@eecs.umich.edu sourceRegs.fRegs[%(reg1)d] = htog(FpOp1P%(reg1)d.uw); 4557639Sgblack@eecs.umich.edu ''' % { "reg0" : (2 * reg + 0), 4567639Sgblack@eecs.umich.edu "reg1" : (2 * reg + 1) } 4577639Sgblack@eecs.umich.edu for dRegs in range(sRegs, 5): 4587639Sgblack@eecs.umich.edu unloadRegs = '' 4597639Sgblack@eecs.umich.edu for reg in range(dRegs): 4607639Sgblack@eecs.umich.edu unloadRegs += ''' 4617639Sgblack@eecs.umich.edu FpDestS%(reg)dP0.uw = gtoh(destRegs[%(reg)d].fRegs[0]); 4627639Sgblack@eecs.umich.edu FpDestS%(reg)dP1.uw = gtoh(destRegs[%(reg)d].fRegs[1]); 4637639Sgblack@eecs.umich.edu ''' % { "reg" : reg } 4647639Sgblack@eecs.umich.edu microUnpackAllNeonCode = ''' 4657639Sgblack@eecs.umich.edu const unsigned perDReg = (2 * sizeof(FloatRegBits)) / 4667639Sgblack@eecs.umich.edu sizeof(Element); 4677639Sgblack@eecs.umich.edu 4687639Sgblack@eecs.umich.edu union SourceRegs { 4697639Sgblack@eecs.umich.edu FloatRegBits fRegs[2 * %(sRegs)d]; 4707639Sgblack@eecs.umich.edu Element elements[%(sRegs)d * perDReg]; 4717639Sgblack@eecs.umich.edu } sourceRegs; 4727639Sgblack@eecs.umich.edu 4737639Sgblack@eecs.umich.edu union DestReg { 4747639Sgblack@eecs.umich.edu FloatRegBits fRegs[2]; 4757639Sgblack@eecs.umich.edu Element elements[perDReg]; 4767639Sgblack@eecs.umich.edu } destRegs[%(dRegs)d]; 4777639Sgblack@eecs.umich.edu 4787639Sgblack@eecs.umich.edu %(loadRegs)s 4797639Sgblack@eecs.umich.edu 4807639Sgblack@eecs.umich.edu for (unsigned i = 0; i < %(dRegs)d; i++) { 4817639Sgblack@eecs.umich.edu for (unsigned j = 0; j < perDReg; j++) 4827639Sgblack@eecs.umich.edu destRegs[i].elements[j] = sourceRegs.elements[i]; 4837639Sgblack@eecs.umich.edu } 4847639Sgblack@eecs.umich.edu 4857639Sgblack@eecs.umich.edu %(unloadRegs)s 4867639Sgblack@eecs.umich.edu ''' % { "sRegs" : sRegs, "dRegs" : dRegs, 4877639Sgblack@eecs.umich.edu "loadRegs" : loadRegs, "unloadRegs" : unloadRegs } 4887639Sgblack@eecs.umich.edu 4897639Sgblack@eecs.umich.edu microUnpackAllNeonIop = \ 4907639Sgblack@eecs.umich.edu InstObjParams('unpackallneon%dto%duop' % (sRegs * 2, dRegs * 2), 4917639Sgblack@eecs.umich.edu 'MicroUnpackAllNeon%dto%dUop' % 4927639Sgblack@eecs.umich.edu (sRegs * 2, dRegs * 2), 4937639Sgblack@eecs.umich.edu 'MicroNeonMixOp', 4947639Sgblack@eecs.umich.edu { 'predicate_test': predicateTest, 4957639Sgblack@eecs.umich.edu 'code' : microUnpackAllNeonCode }, 4967639Sgblack@eecs.umich.edu ['IsMicroop']) 4977639Sgblack@eecs.umich.edu header_output += MicroNeonMixDeclare.subst(microUnpackAllNeonIop) 4987639Sgblack@eecs.umich.edu exec_output += MicroNeonMixExecute.subst(microUnpackAllNeonIop) 4997639Sgblack@eecs.umich.edu 5007639Sgblack@eecs.umich.edu for dRegs in 1, 2: 5017639Sgblack@eecs.umich.edu unloadRegs = '' 5027639Sgblack@eecs.umich.edu for reg in range(dRegs): 5037639Sgblack@eecs.umich.edu unloadRegs += ''' 5047639Sgblack@eecs.umich.edu FpDestP%(reg0)d.uw = gtoh(destRegs.fRegs[%(reg0)d]); 5057639Sgblack@eecs.umich.edu FpDestP%(reg1)d.uw = gtoh(destRegs.fRegs[%(reg1)d]); 5067639Sgblack@eecs.umich.edu ''' % { "reg0" : (2 * reg + 0), 5077639Sgblack@eecs.umich.edu "reg1" : (2 * reg + 1) } 5087639Sgblack@eecs.umich.edu for sRegs in range(dRegs, 5): 5097639Sgblack@eecs.umich.edu loadRegs = '' 5107639Sgblack@eecs.umich.edu for reg in range(sRegs): 5117639Sgblack@eecs.umich.edu loadRegs += ''' 5127639Sgblack@eecs.umich.edu sourceRegs[%(reg)d].fRegs[0] = htog(FpOp1S%(reg)dP0.uw); 5137639Sgblack@eecs.umich.edu sourceRegs[%(reg)d].fRegs[1] = htog(FpOp1S%(reg)dP1.uw); 5147639Sgblack@eecs.umich.edu ''' % { "reg" : reg } 5157639Sgblack@eecs.umich.edu microPackNeonCode = ''' 5167639Sgblack@eecs.umich.edu const unsigned perDReg = (2 * sizeof(FloatRegBits)) / 5177639Sgblack@eecs.umich.edu sizeof(Element); 5187639Sgblack@eecs.umich.edu 5197639Sgblack@eecs.umich.edu union SourceReg { 5207639Sgblack@eecs.umich.edu FloatRegBits fRegs[2]; 5217639Sgblack@eecs.umich.edu Element elements[perDReg]; 5227639Sgblack@eecs.umich.edu } sourceRegs[%(sRegs)d]; 5237639Sgblack@eecs.umich.edu 5247639Sgblack@eecs.umich.edu union DestRegs { 5257639Sgblack@eecs.umich.edu FloatRegBits fRegs[2 * %(dRegs)d]; 5267639Sgblack@eecs.umich.edu Element elements[%(dRegs)d * perDReg]; 5277639Sgblack@eecs.umich.edu } destRegs; 5287639Sgblack@eecs.umich.edu 5297639Sgblack@eecs.umich.edu %(loadRegs)s 5307639Sgblack@eecs.umich.edu 5317639Sgblack@eecs.umich.edu for (unsigned i = 0; i < %(sRegs)d; i++) { 5327639Sgblack@eecs.umich.edu destRegs.elements[i] = sourceRegs[i].elements[lane]; 5337639Sgblack@eecs.umich.edu } 5347639Sgblack@eecs.umich.edu 5357639Sgblack@eecs.umich.edu %(unloadRegs)s 5367639Sgblack@eecs.umich.edu ''' % { "sRegs" : sRegs, "dRegs" : dRegs, 5377639Sgblack@eecs.umich.edu "loadRegs" : loadRegs, "unloadRegs" : unloadRegs } 5387639Sgblack@eecs.umich.edu 5397639Sgblack@eecs.umich.edu microPackNeonIop = \ 5407639Sgblack@eecs.umich.edu InstObjParams('packneon%dto%duop' % (sRegs * 2, dRegs * 2), 5417639Sgblack@eecs.umich.edu 'MicroPackNeon%dto%dUop' % 5427639Sgblack@eecs.umich.edu (sRegs * 2, dRegs * 2), 5437639Sgblack@eecs.umich.edu 'MicroNeonMixLaneOp', 5447639Sgblack@eecs.umich.edu { 'predicate_test': predicateTest, 5457639Sgblack@eecs.umich.edu 'code' : microPackNeonCode }, 5467639Sgblack@eecs.umich.edu ['IsMicroop']) 5477639Sgblack@eecs.umich.edu header_output += MicroNeonMixLaneDeclare.subst(microPackNeonIop) 5487639Sgblack@eecs.umich.edu exec_output += MicroNeonMixExecute.subst(microPackNeonIop) 5497639Sgblack@eecs.umich.edu}}; 5507639Sgblack@eecs.umich.edu 5517639Sgblack@eecs.umich.edulet {{ 5527639Sgblack@eecs.umich.edu exec_output = '' 5537639Sgblack@eecs.umich.edu for type in ('uint8_t', 'uint16_t', 'uint32_t'): 5547639Sgblack@eecs.umich.edu for sRegs in 1, 2: 5557639Sgblack@eecs.umich.edu for dRegs in range(sRegs, 5): 5567639Sgblack@eecs.umich.edu for format in ("MicroUnpackNeon%(sRegs)dto%(dRegs)dUop", 5577639Sgblack@eecs.umich.edu "MicroUnpackAllNeon%(sRegs)dto%(dRegs)dUop", 5587639Sgblack@eecs.umich.edu "MicroPackNeon%(dRegs)dto%(sRegs)dUop"): 5597639Sgblack@eecs.umich.edu Name = format % { "sRegs" : sRegs * 2, 5607639Sgblack@eecs.umich.edu "dRegs" : dRegs * 2 } 5617639Sgblack@eecs.umich.edu substDict = { "class_name" : Name, "targs" : type } 5627639Sgblack@eecs.umich.edu exec_output += MicroNeonExecDeclare.subst(substDict) 5637639Sgblack@eecs.umich.edu}}; 5647639Sgblack@eecs.umich.edu 5656308SN/A//////////////////////////////////////////////////////////////////// 5666308SN/A// 5676308SN/A// Integer = Integer op Immediate microops 5686308SN/A// 5696308SN/A 5706308SN/Alet {{ 5716308SN/A microAddiUopIop = InstObjParams('addi_uop', 'MicroAddiUop', 5727639Sgblack@eecs.umich.edu 'MicroIntImmOp', 5736308SN/A {'code': 'Ra = Rb + imm;', 5746308SN/A 'predicate_test': predicateTest}, 5756308SN/A ['IsMicroop']) 5766308SN/A 5777639Sgblack@eecs.umich.edu microAddUopIop = InstObjParams('add_uop', 'MicroAddUop', 5787639Sgblack@eecs.umich.edu 'MicroIntOp', 5797639Sgblack@eecs.umich.edu {'code': 'Ra = Rb + Rc;', 5807639Sgblack@eecs.umich.edu 'predicate_test': predicateTest}, 5817639Sgblack@eecs.umich.edu ['IsMicroop']) 5827639Sgblack@eecs.umich.edu 5836308SN/A microSubiUopIop = InstObjParams('subi_uop', 'MicroSubiUop', 5847639Sgblack@eecs.umich.edu 'MicroIntImmOp', 5856308SN/A {'code': 'Ra = Rb - imm;', 5866308SN/A 'predicate_test': predicateTest}, 5876308SN/A ['IsMicroop']) 5886308SN/A 5897639Sgblack@eecs.umich.edu header_output = MicroIntImmDeclare.subst(microAddiUopIop) + \ 5907639Sgblack@eecs.umich.edu MicroIntImmDeclare.subst(microSubiUopIop) + \ 5917639Sgblack@eecs.umich.edu MicroIntDeclare.subst(microAddUopIop) 5927639Sgblack@eecs.umich.edu decoder_output = MicroIntImmConstructor.subst(microAddiUopIop) + \ 5937639Sgblack@eecs.umich.edu MicroIntImmConstructor.subst(microSubiUopIop) + \ 5947639Sgblack@eecs.umich.edu MicroIntConstructor.subst(microAddUopIop) 5956308SN/A exec_output = PredOpExecute.subst(microAddiUopIop) + \ 5967639Sgblack@eecs.umich.edu PredOpExecute.subst(microSubiUopIop) + \ 5977639Sgblack@eecs.umich.edu PredOpExecute.subst(microAddUopIop) 5986308SN/A}}; 5996019SN/A 6007134Sgblack@eecs.umich.edulet {{ 6017170Sgblack@eecs.umich.edu iop = InstObjParams("ldmstm", "LdmStm", 'MacroMemOp', "", []) 6027134Sgblack@eecs.umich.edu header_output = MacroMemDeclare.subst(iop) 6037134Sgblack@eecs.umich.edu decoder_output = MacroMemConstructor.subst(iop) 6047179Sgblack@eecs.umich.edu 6057639Sgblack@eecs.umich.edu iop = InstObjParams("vldmult", "VldMult", 'VldMultOp', "", []) 6067639Sgblack@eecs.umich.edu header_output += VMemMultDeclare.subst(iop) 6077639Sgblack@eecs.umich.edu decoder_output += VMemMultConstructor.subst(iop) 6087639Sgblack@eecs.umich.edu 6097639Sgblack@eecs.umich.edu iop = InstObjParams("vldsingle", "VldSingle", 'VldSingleOp', "", []) 6107639Sgblack@eecs.umich.edu header_output += VMemSingleDeclare.subst(iop) 6117639Sgblack@eecs.umich.edu decoder_output += VMemSingleConstructor.subst(iop) 6127639Sgblack@eecs.umich.edu 6137639Sgblack@eecs.umich.edu iop = InstObjParams("vstmult", "VstMult", 'VstMultOp', "", []) 6147639Sgblack@eecs.umich.edu header_output += VMemMultDeclare.subst(iop) 6157639Sgblack@eecs.umich.edu decoder_output += VMemMultConstructor.subst(iop) 6167639Sgblack@eecs.umich.edu 6177639Sgblack@eecs.umich.edu iop = InstObjParams("vstsingle", "VstSingle", 'VstSingleOp', "", []) 6187639Sgblack@eecs.umich.edu header_output += VMemSingleDeclare.subst(iop) 6197639Sgblack@eecs.umich.edu decoder_output += VMemSingleConstructor.subst(iop) 6207639Sgblack@eecs.umich.edu 6217179Sgblack@eecs.umich.edu vfpIop = InstObjParams("vldmstm", "VLdmStm", 'MacroVFPMemOp', "", []) 6227179Sgblack@eecs.umich.edu header_output += MacroVFPMemDeclare.subst(vfpIop) 6237179Sgblack@eecs.umich.edu decoder_output += MacroVFPMemConstructor.subst(vfpIop) 6246019SN/A}}; 625