Lines Matching full:lo

26  *                 |  lo(R6)  |
28 * | lo(R7) |
106 static s8 lo(const s8 *r) in lo() function
127 emit_imm(lo(rd), imm, ctx); in emit_imm32()
139 emit_imm(lo(rd), imm_lo, ctx); in emit_imm64()
150 emit(rv_addi(RV_REG_A0, lo(r0), 0), ctx); in __build_epilogue()
190 emit(rv_lw(lo(tmp), lo(reg), RV_REG_FP), ctx); in bpf_get_reg64()
201 emit(rv_sw(RV_REG_FP, lo(reg), lo(src)), ctx); in bpf_put_reg64()
208 if (is_stacked(lo(reg))) { in bpf_get_reg32()
209 emit(rv_lw(lo(tmp), lo(reg), RV_REG_FP), ctx); in bpf_get_reg32()
218 if (is_stacked(lo(reg))) { in bpf_put_reg32()
219 emit(rv_sw(RV_REG_FP, lo(reg), lo(src)), ctx); in bpf_put_reg32()
255 emit(rv_andi(lo(rd), lo(rd), imm), ctx); in emit_alu_i64()
258 emit(rv_and(lo(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_i64()
265 emit(rv_ori(lo(rd), lo(rd), imm), ctx); in emit_alu_i64()
268 emit(rv_or(lo(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_i64()
275 emit(rv_xori(lo(rd), lo(rd), imm), ctx); in emit_alu_i64()
278 emit(rv_xor(lo(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_i64()
285 emit(rv_slli(hi(rd), lo(rd), imm - 32), ctx); in emit_alu_i64()
286 emit(rv_addi(lo(rd), RV_REG_ZERO, 0), ctx); in emit_alu_i64()
290 emit(rv_srli(RV_REG_T0, lo(rd), 32 - imm), ctx); in emit_alu_i64()
293 emit(rv_slli(lo(rd), lo(rd), imm), ctx); in emit_alu_i64()
298 emit(rv_srli(lo(rd), hi(rd), imm - 32), ctx); in emit_alu_i64()
304 emit(rv_srli(lo(rd), lo(rd), imm), ctx); in emit_alu_i64()
305 emit(rv_or(lo(rd), RV_REG_T0, lo(rd)), ctx); in emit_alu_i64()
311 emit(rv_srai(lo(rd), hi(rd), imm - 32), ctx); in emit_alu_i64()
317 emit(rv_srli(lo(rd), lo(rd), imm), ctx); in emit_alu_i64()
318 emit(rv_or(lo(rd), RV_REG_T0, lo(rd)), ctx); in emit_alu_i64()
335 emit_imm(lo(rd), imm, ctx); in emit_alu_i32()
339 emit(rv_addi(lo(rd), lo(rd), imm), ctx); in emit_alu_i32()
342 emit(rv_add(lo(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_i32()
347 emit(rv_addi(lo(rd), lo(rd), -imm), ctx); in emit_alu_i32()
350 emit(rv_sub(lo(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_i32()
355 emit(rv_andi(lo(rd), lo(rd), imm), ctx); in emit_alu_i32()
358 emit(rv_and(lo(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_i32()
363 emit(rv_ori(lo(rd), lo(rd), imm), ctx); in emit_alu_i32()
366 emit(rv_or(lo(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_i32()
371 emit(rv_xori(lo(rd), lo(rd), imm), ctx); in emit_alu_i32()
374 emit(rv_xor(lo(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_i32()
379 emit(rv_slli(lo(rd), lo(rd), imm), ctx); in emit_alu_i32()
382 emit(rv_sll(lo(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_i32()
387 emit(rv_srli(lo(rd), lo(rd), imm), ctx); in emit_alu_i32()
390 emit(rv_srl(lo(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_i32()
395 emit(rv_srai(lo(rd), lo(rd), imm), ctx); in emit_alu_i32()
398 emit(rv_sra(lo(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_i32()
416 emit(rv_addi(lo(rd), lo(rs), 0), ctx); in emit_alu_r64()
421 emit(rv_srli(RV_REG_T0, lo(rd), 31), ctx); in emit_alu_r64()
424 emit(rv_slli(lo(rd), lo(rd), 1), ctx); in emit_alu_r64()
426 emit(rv_add(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r64()
427 emit(rv_sltu(RV_REG_T0, lo(rd), lo(rs)), ctx); in emit_alu_r64()
434 emit(rv_sltu(RV_REG_T0, lo(rd), lo(rs)), ctx); in emit_alu_r64()
436 emit(rv_sub(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r64()
439 emit(rv_and(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r64()
443 emit(rv_or(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r64()
447 emit(rv_xor(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r64()
451 emit(rv_mul(RV_REG_T0, hi(rs), lo(rd)), ctx); in emit_alu_r64()
452 emit(rv_mul(hi(rd), hi(rd), lo(rs)), ctx); in emit_alu_r64()
453 emit(rv_mulhu(RV_REG_T1, lo(rd), lo(rs)), ctx); in emit_alu_r64()
455 emit(rv_mul(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r64()
459 emit(rv_addi(RV_REG_T0, lo(rs), -32), ctx); in emit_alu_r64()
461 emit(rv_sll(hi(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_r64()
462 emit(rv_addi(lo(rd), RV_REG_ZERO, 0), ctx); in emit_alu_r64()
465 emit(rv_srli(RV_REG_T0, lo(rd), 1), ctx); in emit_alu_r64()
466 emit(rv_sub(RV_REG_T1, RV_REG_T1, lo(rs)), ctx); in emit_alu_r64()
468 emit(rv_sll(hi(rd), hi(rd), lo(rs)), ctx); in emit_alu_r64()
470 emit(rv_sll(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r64()
473 emit(rv_addi(RV_REG_T0, lo(rs), -32), ctx); in emit_alu_r64()
475 emit(rv_srl(lo(rd), hi(rd), RV_REG_T0), ctx); in emit_alu_r64()
480 emit(rv_sub(RV_REG_T1, RV_REG_T1, lo(rs)), ctx); in emit_alu_r64()
482 emit(rv_srl(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r64()
483 emit(rv_or(lo(rd), RV_REG_T0, lo(rd)), ctx); in emit_alu_r64()
484 emit(rv_srl(hi(rd), hi(rd), lo(rs)), ctx); in emit_alu_r64()
487 emit(rv_addi(RV_REG_T0, lo(rs), -32), ctx); in emit_alu_r64()
489 emit(rv_sra(lo(rd), hi(rd), RV_REG_T0), ctx); in emit_alu_r64()
494 emit(rv_sub(RV_REG_T1, RV_REG_T1, lo(rs)), ctx); in emit_alu_r64()
496 emit(rv_srl(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r64()
497 emit(rv_or(lo(rd), RV_REG_T0, lo(rd)), ctx); in emit_alu_r64()
498 emit(rv_sra(hi(rd), hi(rd), lo(rs)), ctx); in emit_alu_r64()
501 emit(rv_sub(lo(rd), RV_REG_ZERO, lo(rd)), ctx); in emit_alu_r64()
502 emit(rv_sltu(RV_REG_T0, RV_REG_ZERO, lo(rd)), ctx); in emit_alu_r64()
521 emit(rv_addi(lo(rd), lo(rs), 0), ctx); in emit_alu_r32()
524 emit(rv_add(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r32()
527 emit(rv_sub(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r32()
530 emit(rv_and(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r32()
533 emit(rv_or(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r32()
536 emit(rv_xor(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r32()
539 emit(rv_mul(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r32()
542 emit(rv_divu(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r32()
545 emit(rv_remu(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r32()
548 emit(rv_sll(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r32()
551 emit(rv_srl(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r32()
554 emit(rv_sra(lo(rd), lo(rd), lo(rs)), ctx); in emit_alu_r32()
557 emit(rv_sub(lo(rd), RV_REG_ZERO, lo(rd)), ctx); in emit_alu_r32()
588 emit(rv_bne(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
593 emit(rv_bleu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
598 emit(rv_bgeu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
603 emit(rv_bltu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
608 emit(rv_bgtu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
612 emit(rv_beq(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
617 emit(rv_bleu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
622 emit(rv_bgeu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
627 emit(rv_bltu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
632 emit(rv_bgtu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
637 emit(rv_and(RV_REG_T0, lo(rs1), lo(rs2)), ctx); in emit_branch_r64()
736 if (emit_bcc(op, lo(rs1), lo(rs2), rvoff, ctx)) in emit_branch_r32()
751 emit(rv_sw(RV_REG_SP, 0, lo(r5)), ctx); in emit_call()
769 emit(rv_addi(lo(r0), RV_REG_A0, 0), ctx); in emit_call()
792 emit(rv_lw(RV_REG_T1, off, lo(arr_reg)), ctx); in emit_bpf_tail_call()
799 emit_bcc(BPF_JGE, lo(idx_reg), RV_REG_T1, off, ctx); in emit_bpf_tail_call()
814 emit_sh2add(RV_REG_T0, lo(idx_reg), lo(arr_reg), ctx); in emit_bpf_tail_call()
844 emit(rv_add(RV_REG_T0, RV_REG_T0, lo(rs)), ctx); in emit_load_r64()
848 emit(rv_lbu(lo(rd), 0, RV_REG_T0), ctx); in emit_load_r64()
853 emit(rv_lhu(lo(rd), 0, RV_REG_T0), ctx); in emit_load_r64()
858 emit(rv_lw(lo(rd), 0, RV_REG_T0), ctx); in emit_load_r64()
863 emit(rv_lw(lo(rd), 0, RV_REG_T0), ctx); in emit_load_r64()
885 emit(rv_add(RV_REG_T0, RV_REG_T0, lo(rd)), ctx); in emit_store_r64()
889 emit(rv_sb(RV_REG_T0, 0, lo(rs)), ctx); in emit_store_r64()
892 emit(rv_sh(RV_REG_T0, 0, lo(rs)), ctx); in emit_store_r64()
897 emit(rv_sw(RV_REG_T0, 0, lo(rs)), ctx); in emit_store_r64()
900 emit(rv_amoadd_w(RV_REG_ZERO, lo(rs), RV_REG_T0, 0, 0), in emit_store_r64()
906 emit(rv_sw(RV_REG_T0, 0, lo(rs)), ctx); in emit_store_r64()
1077 emit(rv_slli(lo(rd), lo(rd), 16), ctx); in bpf_jit_emit_insn()
1078 emit(rv_srli(lo(rd), lo(rd), 16), ctx); in bpf_jit_emit_insn()
1102 emit_rev16(lo(rd), ctx); in bpf_jit_emit_insn()
1107 emit_rev32(lo(rd), ctx); in bpf_jit_emit_insn()
1113 emit(rv_addi(RV_REG_T0, lo(rd), 0), ctx); in bpf_jit_emit_insn()
1114 emit(rv_addi(lo(rd), hi(rd), 0), ctx); in bpf_jit_emit_insn()
1118 emit_rev32(lo(rd), ctx); in bpf_jit_emit_insn()
1343 emit(rv_addi(lo(fp), RV_REG_SP, bpf_stack_adjust), ctx); in bpf_jit_build_prologue()
1347 emit(rv_addi(lo(r1), RV_REG_A0, 0), ctx); in bpf_jit_build_prologue()