bit_test.py (6093:7b88298769c7) bit_test.py (6095:c36f932461d9)
1# Copyright (c) 2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

209 limm t4, "(uint64_t(-(2ULL)))"
210 roli t4, t4, imm
211 ldst t1, seg, riprel, disp
212 sexti t0, t1, imm, flags=(CF,)
213 and t1, t1, t4
214 st t1, seg, riprel, disp
215};
216
1# Copyright (c) 2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

209 limm t4, "(uint64_t(-(2ULL)))"
210 roli t4, t4, imm
211 ldst t1, seg, riprel, disp
212 sexti t0, t1, imm, flags=(CF,)
213 and t1, t1, t4
214 st t1, seg, riprel, disp
215};
216
217def macroop BTR_LOCKED_M_I {
218 limm t1, imm, dataSize=asz
219 limm t4, "(uint64_t(-(2ULL)))"
220 roli t4, t4, imm
221 ldstl t1, seg, sib, disp
222 sexti t0, t1, imm, flags=(CF,)
223 and t1, t1, t4
224 stul t1, seg, sib, disp
225};
226
227def macroop BTR_LOCKED_P_I {
228 rdip t7, dataSize=asz
229 limm t1, imm, dataSize=asz
230 limm t4, "(uint64_t(-(2ULL)))"
231 roli t4, t4, imm
232 ldstl t1, seg, riprel, disp
233 sexti t0, t1, imm, flags=(CF,)
234 and t1, t1, t4
235 stul t1, seg, riprel, disp
236};
237
217def macroop BTR_R_R {
218 sext t0, reg, regm, flags=(CF,)
219 limm t1, "(uint64_t(-(2ULL)))"
220 rol t1, t1, regm
221 and reg, reg, t1
222};
223
224def macroop BTR_M_R {

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

241 limm t4, "(uint64_t(-(2ULL)))"
242 rol t4, t4, reg
243 ldst t1, seg, [1, t3, t7], disp
244 sext t0, t1, reg, flags=(CF,)
245 and t1, t1, t4
246 st t1, seg, [1, t3, t7], disp
247};
248
238def macroop BTR_R_R {
239 sext t0, reg, regm, flags=(CF,)
240 limm t1, "(uint64_t(-(2ULL)))"
241 rol t1, t1, regm
242 and reg, reg, t1
243};
244
245def macroop BTR_M_R {

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

262 limm t4, "(uint64_t(-(2ULL)))"
263 rol t4, t4, reg
264 ldst t1, seg, [1, t3, t7], disp
265 sext t0, t1, reg, flags=(CF,)
266 and t1, t1, t4
267 st t1, seg, [1, t3, t7], disp
268};
269
270def macroop BTR_LOCKED_M_R {
271 srai t2, reg, 3, dataSize=asz
272 srai t3, t2, ldsz, dataSize=asz
273 lea t3, flatseg, [dsz, t3, base], dataSize=asz
274 limm t4, "(uint64_t(-(2ULL)))"
275 rol t4, t4, reg
276 ldstl t1, seg, [scale, index, t3], disp
277 sext t0, t1, reg, flags=(CF,)
278 and t1, t1, t4
279 stul t1, seg, [scale, index, t3], disp
280};
281
282def macroop BTR_LOCKED_P_R {
283 rdip t7, dataSize=asz
284 srai t2, reg, 3, dataSize=asz
285 srai t3, t2, ldsz, dataSize=asz
286 lea t3, flatseg, [dsz, t3, base], dataSize=asz
287 limm t4, "(uint64_t(-(2ULL)))"
288 rol t4, t4, reg
289 ldstl t1, seg, [1, t3, t7], disp
290 sext t0, t1, reg, flags=(CF,)
291 and t1, t1, t4
292 stul t1, seg, [1, t3, t7], disp
293};
294
249def macroop BTS_R_I {
250 sexti t0, reg, imm, flags=(CF,)
251 limm t1, 1
252 roli t1, t1, imm
253 or reg, reg, t1
254};
255
256def macroop BTS_M_I {

--- 98 unchanged lines hidden ---
295def macroop BTS_R_I {
296 sexti t0, reg, imm, flags=(CF,)
297 limm t1, 1
298 roli t1, t1, imm
299 or reg, reg, t1
300};
301
302def macroop BTS_M_I {

--- 98 unchanged lines hidden ---