Lines Matching refs:UInt

61 static UInt tab_n_eval[ARMG_CC_OP_NUMBER];
62 static UInt tab_z_eval[ARMG_CC_OP_NUMBER];
63 static UInt tab_c_eval[ARMG_CC_OP_NUMBER];
64 static UInt tab_v_eval[ARMG_CC_OP_NUMBER];
65 static UInt initted = 0;
66 static UInt tot_evals = 0;
70 UInt i;
79 UInt i;
98 vassert( ((UInt)(_cc_op)) < ARMG_CC_OP_NUMBER); \
99 _tab[(UInt)(_cc_op)]++; \
111 UInt armg_calculate_flag_n ( UInt cc_op, UInt cc_dep1,
112 UInt cc_dep2, UInt cc_dep3 )
121 UInt nf = (cc_dep1 >> ARMG_CC_SHIFT_N) & 1;
126 UInt argL = cc_dep1;
127 UInt argR = cc_dep2;
128 UInt res = argL + argR;
129 UInt nf = res >> 31;
134 UInt argL = cc_dep1;
135 UInt argR = cc_dep2;
136 UInt res = argL - argR;
137 UInt nf = res >> 31;
142 UInt argL = cc_dep1;
143 UInt argR = cc_dep2;
144 UInt oldC = cc_dep3;
146 UInt res = argL + argR + oldC;
147 UInt nf = res >> 31;
152 UInt argL = cc_dep1;
153 UInt argR = cc_dep2;
154 UInt oldC = cc_dep3;
156 UInt res = argL - argR - (oldC ^ 1);
157 UInt nf = res >> 31;
162 UInt res = cc_dep1;
163 UInt nf = res >> 31;
168 UInt res = cc_dep1;
169 UInt nf = res >> 31;
174 UInt resHi32 = cc_dep2;
175 UInt nf = resHi32 >> 31;
191 UInt armg_calculate_flag_z ( UInt cc_op, UInt cc_dep1,
192 UInt cc_dep2, UInt cc_dep3 )
201 UInt zf = (cc_dep1 >> ARMG_CC_SHIFT_Z) & 1;
206 UInt argL = cc_dep1;
207 UInt argR = cc_dep2;
208 UInt res = argL + argR;
209 UInt zf = res == 0;
214 UInt argL = cc_dep1;
215 UInt argR = cc_dep2;
216 UInt res = argL - argR;
217 UInt zf = res == 0;
222 UInt argL = cc_dep1;
223 UInt argR = cc_dep2;
224 UInt oldC = cc_dep3;
226 UInt res = argL + argR + oldC;
227 UInt zf = res == 0;
232 UInt argL = cc_dep1;
233 UInt argR = cc_dep2;
234 UInt oldC = cc_dep3;
236 UInt res = argL - argR - (oldC ^ 1);
237 UInt zf = res == 0;
242 UInt res = cc_dep1;
243 UInt zf = res == 0;
248 UInt res = cc_dep1;
249 UInt zf = res == 0;
254 UInt resLo32 = cc_dep1;
255 UInt resHi32 = cc_dep2;
256 UInt zf = (resHi32|resLo32) == 0;
272 UInt armg_calculate_flag_c ( UInt cc_op, UInt cc_dep1,
273 UInt cc_dep2, UInt cc_dep3 )
282 UInt cf = (cc_dep1 >> ARMG_CC_SHIFT_C) & 1;
287 UInt argL = cc_dep1;
288 UInt argR = cc_dep2;
289 UInt res = argL + argR;
290 UInt cf = res < argL;
295 UInt argL = cc_dep1;
296 UInt argR = cc_dep2;
297 UInt cf = argL >= argR;
302 UInt argL = cc_dep1;
303 UInt argR = cc_dep2;
304 UInt oldC = cc_dep3;
306 UInt res = argL + argR + oldC;
307 UInt cf = oldC ? (res <= argL) : (res < argL);
312 UInt argL = cc_dep1;
313 UInt argR = cc_dep2;
314 UInt oldC = cc_dep3;
316 UInt cf = oldC ? (argL >= argR) : (argL > argR);
321 UInt shco = cc_dep2;
323 UInt cf = shco;
328 UInt oldC = (cc_dep3 >> 1) & 1;
330 UInt cf = oldC;
335 UInt oldC = (cc_dep3 >> 1) & 1;
337 UInt cf = oldC;
353 UInt armg_calculate_flag_v ( UInt cc_op, UInt cc_dep1,
354 UInt cc_dep2, UInt cc_dep3 )
363 UInt vf = (cc_dep1 >> ARMG_CC_SHIFT_V) & 1;
368 UInt argL = cc_dep1;
369 UInt argR = cc_dep2;
370 UInt res = argL + argR;
371 UInt vf = ((res ^ argL) & (res ^ argR)) >> 31;
376 UInt argL = cc_dep1;
377 UInt argR = cc_dep2;
378 UInt res = argL - argR;
379 UInt vf = ((argL ^ argR) & (argL ^ res)) >> 31;
384 UInt argL = cc_dep1;
385 UInt argR = cc_dep2;
386 UInt oldC = cc_dep3;
388 UInt res = argL + argR + oldC;
389 UInt vf = ((res ^ argL) & (res ^ argR)) >> 31;
394 UInt argL = cc_dep1;
395 UInt argR = cc_dep2;
396 UInt oldC = cc_dep3;
398 UInt res = argL - argR - (oldC ^ 1);
399 UInt vf = ((argL ^ argR) & (argL ^ res)) >> 31;
404 UInt oldV = cc_dep3;
406 UInt vf = oldV;
411 UInt oldV = (cc_dep3 >> 0) & 1;
413 UInt vf = oldV;
418 UInt oldV = (cc_dep3 >> 0) & 1;
420 UInt vf = oldV;
437 UInt armg_calculate_flags_nzcv ( UInt cc_op, UInt cc_dep1,
438 UInt cc_dep2, UInt cc_dep3 )
440 UInt f;
441 UInt res = 0;
458 UInt armg_calculate_flag_qc ( UInt resL1, UInt resL2,
459 UInt resR1, UInt resR2 )
470 UInt armg_calculate_condition ( UInt cond_n_op /* (ARMCondcode << 4) | cc_op */,
471 UInt cc_dep1,
472 UInt cc_dep2, UInt cc_dep3 )
474 UInt cond = cond_n_op >> 4;
475 UInt cc_op = cond_n_op & 0xF;
476 UInt nf, zf, vf, cf, inv;
546 static Bool isU32 ( IRExpr* e, UInt n )
896 void LibVEX_GuestARM_put_flags ( UInt flags_native,
913 UInt LibVEX_GuestARM_get_cpsr ( /*IN*/const VexGuestARMState* vex_state )
915 UInt cpsr = 0;