limmop.isa (8588:ef28ed90449d) | limmop.isa (9764:7e744dcb1904) |
---|---|
1// Copyright (c) 2007 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// The license below extends only to copyright in the software and shall 5// not be construed as granting a license to any other intellectual 6// property including but not limited to intellectual property relating 7// to a hardware implementation of the functionality of the software 8// licensed hereunder. You may use the software subject to the license --- 126 unchanged lines hidden (view full) --- 135 136 class LfpimmOp(X86Microop): 137 def __init__(self, dest, imm, dataSize="env.dataSize"): 138 self.className = "Lfpimm" 139 self.mnemonic = "lfpimm" 140 self.dest = dest 141 if isinstance(imm, (int, long)): 142 imm = "ULL(%d)" % imm | 1// Copyright (c) 2007 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// The license below extends only to copyright in the software and shall 5// not be construed as granting a license to any other intellectual 6// property including but not limited to intellectual property relating 7// to a hardware implementation of the functionality of the software 8// licensed hereunder. You may use the software subject to the license --- 126 unchanged lines hidden (view full) --- 135 136 class LfpimmOp(X86Microop): 137 def __init__(self, dest, imm, dataSize="env.dataSize"): 138 self.className = "Lfpimm" 139 self.mnemonic = "lfpimm" 140 self.dest = dest 141 if isinstance(imm, (int, long)): 142 imm = "ULL(%d)" % imm |
143 if isinstance(imm, float): 144 imm = "reinterpret_cast<uint64_t>((double)(%d))" | 143 elif isinstance(imm, float): 144 imm = "getDoubleBits(%.16f)" % imm |
145 self.imm = imm 146 self.dataSize = dataSize 147 148 def getAllocator(self, microFlags): 149 allocator = '''new %(class_name)s(machInst, macrocodeBlock, 150 %(flags)s, %(dest)s, %(imm)s, %(dataSize)s)''' % { 151 "class_name" : self.className, 152 "mnemonic" : self.mnemonic, --- 27 unchanged lines hidden --- | 145 self.imm = imm 146 self.dataSize = dataSize 147 148 def getAllocator(self, microFlags): 149 allocator = '''new %(class_name)s(machInst, macrocodeBlock, 150 %(flags)s, %(dest)s, %(imm)s, %(dataSize)s)''' % { 151 "class_name" : self.className, 152 "mnemonic" : self.mnemonic, --- 27 unchanged lines hidden --- |