Lines Matching refs:imm
106 static inline void move_imm(struct jit_ctx *ctx, enum loongarch_gpr rd, long imm, bool is32) in move_imm() argument
111 if (imm == 0) { in move_imm()
117 if (is_signed_imm12(imm)) { in move_imm()
118 emit_insn(ctx, addiw, rd, LOONGARCH_GPR_ZERO, imm); in move_imm()
123 if (is_unsigned_imm12(imm)) { in move_imm()
124 emit_insn(ctx, ori, rd, LOONGARCH_GPR_ZERO, imm); in move_imm()
129 imm_63_52 = (imm >> 52) & 0xfff; in move_imm()
130 imm_51_0 = imm & 0xfffffffffffff; in move_imm()
137 imm_31_12 = (imm >> 12) & 0xfffff; in move_imm()
141 imm_11_0 = imm & 0xfff; in move_imm()
145 if (!is_signed_imm32(imm)) { in move_imm()
152 imm_51_31 = (imm >> 31) & 0x1fffff; in move_imm()
155 imm_51_32 = (imm >> 32) & 0xfffff; in move_imm()
161 if (!is_signed_imm52(imm)) in move_imm()