Deleted Added
sdiff udiff text old ( 7279:157b02cc0ba1 ) new ( 7294:fda2c00880db )
full compact
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

--- 84 unchanged lines hidden (view full) ---

93 eaCode += offset
94 eaCode += ";"
95
96 accCode = "Mem%s = Dest;\n" % buildMemSuffix(sign, size)
97 if writeback:
98 accCode += "Base = Base %s;\n" % offset
99 base = buildMemBase("MemoryImm", post, writeback)
100
101 emitStore(name, Name, True, eaCode, accCode, [], [], base)
102
103 def buildRegStore(mnem, post, add, writeback, \
104 size=4, sign=False, user=False):
105 name = mnem
106 Name = storeRegClassName(post, add, writeback,
107 size, sign, user)
108
109 if add:

--- 8 unchanged lines hidden (view full) ---

118 eaCode += offset
119 eaCode += ";"
120
121 accCode = "Mem%s = Dest;\n" % buildMemSuffix(sign, size)
122 if writeback:
123 accCode += "Base = Base %s;\n" % offset
124 base = buildMemBase("MemoryReg", post, writeback)
125
126 emitStore(name, Name, False, eaCode, accCode, [], [], base)
127
128 def buildDoubleImmStore(mnem, post, add, writeback):
129 name = mnem
130 Name = storeDoubleImmClassName(post, add, writeback)
131
132 if add:
133 op = " +"
134 else:

--- 6 unchanged lines hidden (view full) ---

141 eaCode += ";"
142
143 accCode = 'Mem.ud = (Dest.ud & mask(32)) | (Dest2.ud << 32);'
144 if writeback:
145 accCode += "Base = Base %s;\n" % offset
146 base = buildMemBase("MemoryDImm", post, writeback)
147
148 emitStore(name, Name, True, eaCode, accCode, \
149 [], [], base, double=True)
150
151 def buildDoubleRegStore(mnem, post, add, writeback):
152 name = mnem
153 Name = storeDoubleRegClassName(post, add, writeback)
154
155 if add:
156 op = " +"
157 else:

--- 7 unchanged lines hidden (view full) ---

165 eaCode += ";"
166
167 accCode = 'Mem.ud = (Dest.ud & mask(32)) | (Dest2.ud << 32);'
168 if writeback:
169 accCode += "Base = Base %s;\n" % offset
170 base = buildMemBase("MemoryDReg", post, writeback)
171
172 emitStore(name, Name, False, eaCode, accCode, \
173 [], [], base, double=True)
174
175 def buildStores(mnem, size=4, sign=False, user=False):
176 buildImmStore(mnem, True, True, True, size, sign, user)
177 buildRegStore(mnem, True, True, True, size, sign, user)
178 buildImmStore(mnem, True, False, True, size, sign, user)
179 buildRegStore(mnem, True, False, True, size, sign, user)
180 buildImmStore(mnem, False, True, True, size, sign, user)
181 buildRegStore(mnem, False, True, True, size, sign, user)

--- 30 unchanged lines hidden ---