Searched refs:imm7 (Results 1 – 2 of 2) sorted by relevance
587 static inline u16 rvc_lw(u8 rd, u32 imm7, u8 rs1) in rvc_lw() argument591 imm_hi = (imm7 & 0x38) >> 3; in rvc_lw()592 imm_lo = ((imm7 & 0x4) >> 1) | ((imm7 & 0x40) >> 6); in rvc_lw()596 static inline u16 rvc_sw(u8 rs1, u32 imm7, u8 rs2) in rvc_sw() argument600 imm_hi = (imm7 & 0x38) >> 3; in rvc_sw()601 imm_lo = ((imm7 & 0x4) >> 1) | ((imm7 & 0x40) >> 6); in rvc_sw()
95 u16 imm7 = (offset & 0x80) >> (7 - 6); in apply_r_riscv_rvc_jump_rela() local102 imm11 | imm10 | imm9_8 | imm7 | imm6 | imm5 | imm4 | imm3_1; in apply_r_riscv_rvc_jump_rela()