Lines Matching defs:val
141 static inline int tcg_target_const_match(tcg_target_long val,
279 static inline void tgen_arithi(TCGContext *s, int c, int r0, int32_t val, int cf)
281 if (!cf && ((c == ARITH_ADD && val == 1) || (c == ARITH_SUB && val == -1))) {
284 } else if (!cf && ((c == ARITH_ADD && val == -1) || (c == ARITH_SUB && val == 1))) {
287 } else if (val == (int8_t)val) {
289 tcg_out8(s, val);
290 } else if (c == ARITH_AND && val == 0xffu && r0 < 4) {
293 } else if (c == ARITH_AND && val == 0xffffu) {
298 tcg_out32(s, val);
302 static void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val)
304 if (val != 0)
305 tgen_arithi(s, ARITH_ADD, reg, val, 0);
310 int32_t val, val1;
314 val = l->u.value - (tcg_target_long)s->code_ptr;
315 val1 = val - 2;
325 tcg_out32(s, val - 5);
329 tcg_out32(s, val - 6);
973 int32_t val;
974 val = args[2];
975 if (val == (int8_t)val) {
977 tcg_out8(s, val);
980 tcg_out32(s, val);