Home | History | Annotate | Download | only in sparc

Lines Matching defs:val

92 static inline int check_fit_tl(tcg_target_long val, unsigned int bits)
94 return (val << ((sizeof(tcg_target_long) * 8 - bits))
95 >> (sizeof(tcg_target_long) * 8 - bits)) == val;
98 static inline int check_fit_i32(uint32_t val, unsigned int bits)
100 return ((val << (32 - bits)) >> (32 - bits)) == val;
169 static inline int tcg_target_const_match(tcg_target_long val,
177 else if ((ct & TCG_CT_CONST_S11) && check_fit_tl(val, 11))
179 else if ((ct & TCG_CT_CONST_S13) && check_fit_tl(val, 13))
395 static inline void tcg_out_sety(TCGContext *s, tcg_target_long val)
397 if (val == 0 || val == -1)
398 tcg_out32(s, WRY | INSN_IMM13(val));
400 fprintf(stderr, "unimplemented sety %ld\n", (long)val);
403 static inline void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val)
405 if (val != 0) {
406 if (check_fit_tl(val, 13))
407 tcg_out_arithi(s, reg, reg, val, ARITH_ADD);
409 tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_I5, val);
415 static inline void tcg_out_andi(TCGContext *s, int reg, tcg_target_long val)
417 if (val != 0) {
418 if (check_fit_tl(val, 13))
419 tcg_out_arithi(s, reg, reg, val, ARITH_AND);
421 tcg_out_movi(s, TCG_TYPE_I32, TCG_REG_I5, val);
434 int32_t val;
438 val = l->u.value - (tcg_target_long)s->code_ptr;
450 int32_t val;
454 val = l->u.value - (tcg_target_long)s->code_ptr;