Lines Matching +refs:ct +refs:diff

212         intptr_t diff = value - (uintptr_t)(code_ptr + 2);  in patch_reloc()  local
216 if (diff >= -0xfff && diff <= 0xfff) { in patch_reloc()
217 u = (diff >= 0); in patch_reloc()
219 diff = -diff; in patch_reloc()
224 assert(diff >= 0x1000 && diff < 0x100000); in patch_reloc()
228 | (20 << 7) | (diff >> 12)); in patch_reloc()
231 diff &= 0xfff; in patch_reloc()
235 insn = deposit32(insn, 0, 12, diff); in patch_reloc()
248 static const char *target_parse_constraint(TCGArgConstraint *ct, in target_parse_constraint() argument
253 ct->ct |= TCG_CT_CONST_ARM; in target_parse_constraint()
256 ct->ct |= TCG_CT_CONST_INV; in target_parse_constraint()
259 ct->ct |= TCG_CT_CONST_NEG; in target_parse_constraint()
262 ct->ct |= TCG_CT_CONST_ZERO; in target_parse_constraint()
266 ct->ct |= TCG_CT_REG; in target_parse_constraint()
267 ct->u.regs = 0xffff; in target_parse_constraint()
272 ct->ct |= TCG_CT_REG; in target_parse_constraint()
273 ct->u.regs = 0xffff; in target_parse_constraint()
277 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R0); in target_parse_constraint()
278 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R1); in target_parse_constraint()
279 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R2); in target_parse_constraint()
280 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R14); in target_parse_constraint()
286 ct->ct |= TCG_CT_REG; in target_parse_constraint()
287 ct->u.regs = 0xffff; in target_parse_constraint()
290 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R0); in target_parse_constraint()
291 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R1); in target_parse_constraint()
294 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R2); in target_parse_constraint()
297 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R3); in target_parse_constraint()
299 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R14); in target_parse_constraint()
354 int ct; in tcg_target_const_match() local
355 ct = arg_ct->ct; in tcg_target_const_match()
356 if (ct & TCG_CT_CONST) { in tcg_target_const_match()
358 } else if ((ct & TCG_CT_CONST_ARM) && check_fit_imm(val)) { in tcg_target_const_match()
360 } else if ((ct & TCG_CT_CONST_INV) && check_fit_imm(~val)) { in tcg_target_const_match()
362 } else if ((ct & TCG_CT_CONST_NEG) && check_fit_imm(-val)) { in tcg_target_const_match()
364 } else if ((ct & TCG_CT_CONST_ZERO) && val == 0) { in tcg_target_const_match()
627 int rot, diff, opc, sh1, sh2; in tcg_out_movi32() local
646 diff = arg - ((intptr_t)s->code_ptr + 8); in tcg_out_movi32()
647 if (diff >= 0) { in tcg_out_movi32()
648 rot = encode_imm(diff); in tcg_out_movi32()
651 rotl(diff, rot) | (rot << 7)); in tcg_out_movi32()
655 rot = encode_imm(-diff); in tcg_out_movi32()
658 rotl(-diff, rot) | (rot << 7)); in tcg_out_movi32()