Lines Matching refs:REG_LO

91 #define REG_LO(r) (bpf2arc[(r)][0])  macro
1319 len = arc_sexb_r(buf, REG_LO(rd), REG_LO(rs)); in mov_r32()
1321 len = arc_sexh_r(buf, REG_LO(rd), REG_LO(rs)); in mov_r32()
1323 len = arc_mov_r(buf, REG_LO(rd), REG_LO(rs)); in mov_r32()
1331 len = arc_mov_r(buf, REG_LO(rd), REG_LO(rs)); in mov_r32()
1338 return arc_mov_i(buf, REG_LO(reg), imm); in mov_r32_i32()
1352 REG_HI(rd), REG_LO(rd), 31); in mov_r64()
1363 len = arc_mov_r(buf, REG_LO(rd), REG_LO(rs)); in mov_r64()
1379 len = arc_mov_i(buf, REG_LO(reg), imm); in mov_r64_i32()
1423 len = arc_mov_i_fixed(buf, REG_LO(reg), lo); in mov_r64_i64()
1446 *arc_reg_mem = REG_LO(rm); in adjust_mem_access()
1451 REG_LO(JIT_REG_TMP), REG_LO(rm), (u32)(*off)); in adjust_mem_access()
1452 *arc_reg_mem = REG_LO(JIT_REG_TMP); in adjust_mem_access()
1467 len += arc_st_r(BUF(buf, len), REG_LO(rs), arc_reg_mem, in store_r()
1474 len += arc_st_r(BUF(buf, len), REG_LO(rs), arc_reg_mem, in store_r()
1529 len += arc_push_r(BUF(buf, len), REG_LO(reg)); in push_r64()
1531 len += arc_push_r(BUF(buf, len), REG_LO(reg)); in push_r64()
1551 len += arc_ldx_r(BUF(buf, len), REG_LO(rd), in load_r()
1554 len += arc_ld_r(BUF(buf, len), REG_LO(rd), in load_r()
1561 REG_HI(rd), REG_LO(rd), 31); in load_r()
1579 if (REG_LO(rd) != arc_reg_mem) { in load_r()
1580 len += arc_ld_r(BUF(buf, len), REG_LO(rd), arc_reg_mem, in load_r()
1587 len += arc_ld_r(BUF(buf, len), REG_LO(rd), arc_reg_mem, in load_r()
1597 return arc_add_r(buf, REG_LO(rd), REG_LO(rs)); in add_r32()
1603 return arc_addi_r(buf, REG_LO(rd), imm); in add_r32_i32()
1605 return arc_add_i(buf, REG_LO(rd), REG_LO(rd), imm); in add_r32_i32()
1612 len = arc_addf_r(buf, REG_LO(rd), REG_LO(rs)); in add_r64()
1622 len = arc_addif_r(buf, REG_LO(rd), imm); in add_r64_i32()
1633 return arc_sub_r(buf, REG_LO(rd), REG_LO(rs)); in sub_r32()
1639 return arc_subi_r(buf, REG_LO(rd), imm); in sub_r32_i32()
1641 return arc_sub_i(buf, REG_LO(rd), imm); in sub_r32_i32()
1648 len = arc_subf_r(buf, REG_LO(rd), REG_LO(rs)); in sub_r64()
1664 return arc_cmp_r(buf, REG_LO(rd), REG_LO(rs)); in cmp_r32()
1669 return arc_neg_r(buf, REG_LO(r), REG_LO(r)); in neg_r32()
1677 len = arc_not_r(buf, REG_LO(r), REG_LO(r)); in neg_r64()
1685 return arc_mpy_r(buf, REG_LO(rd), REG_LO(rd), REG_LO(rs)); in mul_r32()
1690 return arc_mpy_i(buf, REG_LO(rd), REG_LO(rd), imm); in mul_r32_i32()
1704 const u8 t0 = REG_LO(JIT_REG_TMP); in mul_r64()
1706 const u8 C_lo = REG_LO(rs); in mul_r64()
1708 const u8 B_lo = REG_LO(rd); in mul_r64()
1750 const u8 t0 = REG_LO(JIT_REG_TMP); in mul_r64_i32()
1752 const u8 B_lo = REG_LO(rd); in mul_r64_i32()
1777 return arc_divs_r(buf, REG_LO(rd), REG_LO(rs)); in div_r32()
1779 return arc_divu_r(buf, REG_LO(rd), REG_LO(rs)); in div_r32()
1788 return arc_divs_i(buf, REG_LO(rd), imm); in div_r32_i32()
1790 return arc_divu_i(buf, REG_LO(rd), imm); in div_r32_i32()
1796 return arc_rems_r(buf, REG_LO(rd), REG_LO(rs)); in mod_r32()
1798 return arc_remu_r(buf, REG_LO(rd), REG_LO(rs)); in mod_r32()
1807 return arc_rems_i(buf, REG_LO(rd), imm); in mod_r32_i32()
1809 return arc_remu_i(buf, REG_LO(rd), imm); in mod_r32_i32()
1814 return arc_and_r(buf, REG_LO(rd), REG_LO(rs)); in and_r32()
1819 return arc_and_i(buf, REG_LO(rd), imm); in and_r32_i32()
1826 len = arc_and_r(buf, REG_LO(rd), REG_LO(rs)); in and_r64()
1842 return arc_tst_r(buf, REG_LO(rd), REG_LO(rs)); in tst_r32()
1847 return arc_or_r(buf, REG_LO(rd), REG_LO(rd), REG_LO(rs)); in or_r32()
1852 return arc_or_i(buf, REG_LO(rd), imm); in or_r32_i32()
1859 len = arc_or_r(buf, REG_LO(rd), REG_LO(rd), REG_LO(rs)); in or_r64()
1875 return arc_xor_r(buf, REG_LO(rd), REG_LO(rs)); in xor_r32()
1880 return arc_xor_i(buf, REG_LO(rd), imm); in xor_r32_i32()
1887 len = arc_xor_r(buf, REG_LO(rd), REG_LO(rs)); in xor_r64()
1904 return arc_asl_r(buf, REG_LO(rd), REG_LO(rd), REG_LO(rs)); in lsh_r32()
1909 return arc_asli_r(buf, REG_LO(rd), REG_LO(rd), imm); in lsh_r32_i32()
1950 const u8 t0 = REG_LO(JIT_REG_TMP); in lsh_r64()
1952 const u8 C_lo = REG_LO(rs); in lsh_r64()
1953 const u8 B_lo = REG_LO(rd); in lsh_r64()
1983 const u8 t0 = REG_LO(JIT_REG_TMP); in lsh_r64_i32()
1984 const u8 B_lo = REG_LO(rd); in lsh_r64_i32()
2008 return arc_lsr_r(buf, REG_LO(rd), REG_LO(rd), REG_LO(rs)); in rsh_r32()
2013 return arc_lsri_r(buf, REG_LO(rd), REG_LO(rd), imm); in rsh_r32_i32()
2045 const u8 t0 = REG_LO(JIT_REG_TMP); in rsh_r64()
2047 const u8 C_lo = REG_LO(rs); in rsh_r64()
2048 const u8 B_lo = REG_LO(rd); in rsh_r64()
2078 const u8 t0 = REG_LO(JIT_REG_TMP); in rsh_r64_i32()
2079 const u8 B_lo = REG_LO(rd); in rsh_r64_i32()
2103 return arc_asr_r(buf, REG_LO(rd), REG_LO(rd), REG_LO(rs)); in arsh_r32()
2108 return arc_asri_r(buf, REG_LO(rd), REG_LO(rd), imm); in arsh_r32_i32()
2142 const u8 t0 = REG_LO(JIT_REG_TMP); in arsh_r64()
2144 const u8 C_lo = REG_LO(rs); in arsh_r64()
2145 const u8 B_lo = REG_LO(rd); in arsh_r64()
2176 const u8 t0 = REG_LO(JIT_REG_TMP); in arsh_r64_i32()
2177 const u8 B_lo = REG_LO(rd); in arsh_r64_i32()
2215 len = arc_asli_r(buf, REG_LO(rd), REG_LO(rd), 16); in gen_swap()
2218 len += arc_swape_r(BUF(buf, len), REG_LO(rd)); in gen_swap()
2230 len = arc_xor_r(buf, REG_HI(rd), REG_LO(rd)); in gen_swap()
2231 len += arc_xor_r(BUF(buf, len), REG_LO(rd), REG_HI(rd)); in gen_swap()
2232 len += arc_xor_r(BUF(buf, len), REG_HI(rd), REG_LO(rd)); in gen_swap()
2233 len += arc_swape_r(BUF(buf, len), REG_LO(rd)); in gen_swap()
2247 len = arc_and_i(buf, REG_LO(rd), 0xffff); in gen_swap()
2307 len = arc_mov_r(buf, ARC_R_0, REG_LO(BPF_REG_0)); in bpf_to_arc_return()
2322 len = arc_mov_r(buf, REG_LO(BPF_REG_0), ARC_R_0); in arc_to_bpf_return()
2351 len = arc_mov_i_fixed(buf, REG_LO(JIT_REG_TMP), addr); in jump_and_link()
2352 len += arc_jl(BUF(buf, len), REG_LO(JIT_REG_TMP)); in jump_and_link()
2372 usage |= BIT(REG_LO(bpf_reg)); in mask_for_used_regs()
2379 usage |= BIT(REG_LO(BPF_REG_FP)); in mask_for_used_regs()
2382 if (REG_LO(bpf_reg) >= ARC_CALLEE_SAVED_REG_FIRST && in mask_for_used_regs()
2383 REG_LO(bpf_reg) <= ARC_CALLEE_SAVED_REG_LAST) in mask_for_used_regs()
2384 usage |= BIT(REG_LO(bpf_reg)); in mask_for_used_regs()
2683 len += arc_cmpz_r(BUF(buf, len), REG_LO(rd), REG_LO(rs)); in gen_j_eq_64()
2701 len += arc_tstz_r(BUF(buf, len), REG_LO(rd), REG_LO(rs)); in gen_jset_64()
2825 len += arc_cmp_r(BUF(buf, len), REG_LO(rd), REG_LO(rs)); in gen_jcc_64()