Home | History | Annotate | Download | only in priv

Lines Matching refs:UInt

60 static UInt tab_n_eval[ARMG_CC_OP_NUMBER];
61 static UInt tab_z_eval[ARMG_CC_OP_NUMBER];
62 static UInt tab_c_eval[ARMG_CC_OP_NUMBER];
63 static UInt tab_v_eval[ARMG_CC_OP_NUMBER];
64 static UInt initted = 0;
65 static UInt tot_evals = 0;
69 UInt i;
78 UInt i;
97 vassert( ((UInt)(_cc_op)) < ARMG_CC_OP_NUMBER); \
98 _tab[(UInt)(_cc_op)]++; \
110 UInt armg_calculate_flag_n ( UInt cc_op, UInt cc_dep1,
111 UInt cc_dep2, UInt cc_dep3 )
120 UInt nf = (cc_dep1 >> ARMG_CC_SHIFT_N) & 1;
125 UInt argL = cc_dep1;
126 UInt argR = cc_dep2;
127 UInt res = argL + argR;
128 UInt nf = res >> 31;
133 UInt argL = cc_dep1;
134 UInt argR = cc_dep2;
135 UInt res = argL - argR;
136 UInt nf = res >> 31;
141 UInt argL = cc_dep1;
142 UInt argR = cc_dep2;
143 UInt oldC = cc_dep3;
145 UInt res = argL + argR + oldC;
146 UInt nf = res >> 31;
151 UInt argL = cc_dep1;
152 UInt argR = cc_dep2;
153 UInt oldC = cc_dep3;
155 UInt res = argL - argR - (oldC ^ 1);
156 UInt nf = res >> 31;
161 UInt res = cc_dep1;
162 UInt nf = res >> 31;
167 UInt res = cc_dep1;
168 UInt nf = res >> 31;
173 UInt resHi32 = cc_dep2;
174 UInt nf = resHi32 >> 31;
190 UInt armg_calculate_flag_z ( UInt cc_op, UInt cc_dep1,
191 UInt cc_dep2, UInt cc_dep3 )
200 UInt zf = (cc_dep1 >> ARMG_CC_SHIFT_Z) & 1;
205 UInt argL = cc_dep1;
206 UInt argR = cc_dep2;
207 UInt res = argL + argR;
208 UInt zf = res == 0;
213 UInt argL = cc_dep1;
214 UInt argR = cc_dep2;
215 UInt res = argL - argR;
216 UInt zf = res == 0;
221 UInt argL = cc_dep1;
222 UInt argR = cc_dep2;
223 UInt oldC = cc_dep3;
225 UInt res = argL + argR + oldC;
226 UInt zf = res == 0;
231 UInt argL = cc_dep1;
232 UInt argR = cc_dep2;
233 UInt oldC = cc_dep3;
235 UInt res = argL - argR - (oldC ^ 1);
236 UInt zf = res == 0;
241 UInt res = cc_dep1;
242 UInt zf = res == 0;
247 UInt res = cc_dep1;
248 UInt zf = res == 0;
253 UInt resLo32 = cc_dep1;
254 UInt resHi32 = cc_dep2;
255 UInt zf = (resHi32|resLo32) == 0;
271 UInt armg_calculate_flag_c ( UInt cc_op, UInt cc_dep1,
272 UInt cc_dep2, UInt cc_dep3 )
281 UInt cf = (cc_dep1 >> ARMG_CC_SHIFT_C) & 1;
286 UInt argL = cc_dep1;
287 UInt argR = cc_dep2;
288 UInt res = argL + argR;
289 UInt cf = res < argL;
294 UInt argL = cc_dep1;
295 UInt argR = cc_dep2;
296 UInt cf = argL >= argR;
301 UInt argL = cc_dep1;
302 UInt argR = cc_dep2;
303 UInt oldC = cc_dep3;
305 UInt res = argL + argR + oldC;
306 UInt cf = oldC ? (res <= argL) : (res < argL);
311 UInt argL = cc_dep1;
312 UInt argR = cc_dep2;
313 UInt oldC = cc_dep3;
315 UInt cf = oldC ? (argL >= argR) : (argL > argR);
320 UInt shco = cc_dep2;
322 UInt cf = shco;
327 UInt oldC = (cc_dep3 >> 1) & 1;
329 UInt cf = oldC;
334 UInt oldC = (cc_dep3 >> 1) & 1;
336 UInt cf = oldC;
352 UInt armg_calculate_flag_v ( UInt cc_op, UInt cc_dep1,
353 UInt cc_dep2, UInt cc_dep3 )
362 UInt vf = (cc_dep1 >> ARMG_CC_SHIFT_V) & 1;
367 UInt argL = cc_dep1;
368 UInt argR = cc_dep2;
369 UInt res = argL + argR;
370 UInt vf = ((res ^ argL) & (res ^ argR)) >> 31;
375 UInt argL = cc_dep1;
376 UInt argR = cc_dep2;
377 UInt res = argL - argR;
378 UInt vf = ((argL ^ argR) & (argL ^ res)) >> 31;
383 UInt argL = cc_dep1;
384 UInt argR = cc_dep2;
385 UInt oldC = cc_dep3;
387 UInt res = argL + argR + oldC;
388 UInt vf = ((res ^ argL) & (res ^ argR)) >> 31;
393 UInt argL = cc_dep1;
394 UInt argR = cc_dep2;
395 UInt oldC = cc_dep3;
397 UInt res = argL - argR - (oldC ^ 1);
398 UInt vf = ((argL ^ argR) & (argL ^ res)) >> 31;
403 UInt oldV = cc_dep3;
405 UInt vf = oldV;
410 UInt oldV = (cc_dep3 >> 0) & 1;
412 UInt vf = oldV;
417 UInt oldV = (cc_dep3 >> 0) & 1;
419 UInt vf = oldV;
436 UInt armg_calculate_flags_nzcv ( UInt cc_op, UInt cc_dep1,
437 UInt cc_dep2, UInt cc_dep3 )
439 UInt f;
440 UInt res = 0;
457 UInt armg_calculate_flag_qc ( UInt resL1, UInt resL2,
458 UInt resR1, UInt resR2 )
469 UInt armg_calculate_condition ( UInt cond_n_op /* (ARMCondcode << 4) | cc_op */,
470 UInt cc_dep1,
471 UInt cc_dep2, UInt cc_dep3 )
473 UInt cond = cond_n_op >> 4;
474 UInt cc_op = cond_n_op & 0xF;
475 UInt nf, zf, vf, cf, inv;
545 static Bool isU32 ( IRExpr* e, UInt n )
877 void LibVEX_GuestARM_put_flags ( UInt flags_native,
894 UInt LibVEX_GuestARM_get_cpsr ( /*IN*/VexGuestARMState* vex_state )
896 UInt cpsr = 0;