Searched refs:shift_count (Results 1 – 2 of 2) sorted by relevance
| /openbmc/qemu/target/tricore/ |
| H A D | op_helper.c | 1788 int32_t shift_count = sextract32(r2, 0, 6); in helper_sh() local 1790 if (shift_count == -32) { in helper_sh() 1792 } else if (shift_count < 0) { in helper_sh() 1793 return r1 >> -shift_count; in helper_sh() 1795 return r1 << shift_count; in helper_sh() 1802 int32_t shift_count; in helper_sh_h() local 1804 shift_count = sextract32(r2, 0, 5); in helper_sh_h() 1806 if (shift_count == -16) { in helper_sh_h() 1808 } else if (shift_count < 0) { in helper_sh_h() 1809 ret_hw0 = extract32(r1, 0, 16) >> -shift_count; in helper_sh_h() [all …]
|
| H A D | translate.c | 2458 static void gen_shi(TCGv ret, TCGv r1, int32_t shift_count) in gen_shi() argument 2460 if (shift_count == -32) { in gen_shi() 2462 } else if (shift_count >= 0) { in gen_shi() 2463 tcg_gen_shli_tl(ret, r1, shift_count); in gen_shi() 2465 tcg_gen_shri_tl(ret, r1, -shift_count); in gen_shi() 2487 static void gen_shaci(TCGv ret, TCGv r1, int32_t shift_count) in gen_shaci() argument 2493 if (shift_count == 0) { in gen_shaci() 2498 } else if (shift_count == -32) { in gen_shaci() 2505 } else if (shift_count > 0) { in gen_shaci() 2506 TCGv t_max = tcg_constant_i32(0x7FFFFFFF >> shift_count); in gen_shaci() [all …]
|