Lines Matching refs:imm
104 bl_reg rs, bl_reg rt, uint16_t imm) in bl_gen_i_type() argument
112 insn = deposit32(insn, 0, 16, imm); in bl_gen_i_type()
159 static void bl_gen_lui(void **p, bl_reg rt, uint16_t imm) in bl_gen_lui() argument
162 bl_gen_i_type(p, 0x0f, 0, rt, imm); in bl_gen_lui()
178 static void bl_gen_ori(void **p, bl_reg rt, bl_reg rs, uint16_t imm) in bl_gen_ori() argument
180 bl_gen_i_type(p, 0x0d, rs, rt, imm); in bl_gen_ori()
216 static void bl_gen_li(void **p, bl_reg rt, uint32_t imm) in bl_gen_li() argument
219 bl_gen_lui_nm(p, rt, extract32(imm, 12, 20)); in bl_gen_li()
220 bl_gen_ori_nm(p, rt, rt, extract32(imm, 0, 12)); in bl_gen_li()
222 bl_gen_lui(p, rt, extract32(imm, 16, 16)); in bl_gen_li()
223 bl_gen_ori(p, rt, rt, extract32(imm, 0, 16)); in bl_gen_li()
227 static void bl_gen_dli(void **p, bl_reg rt, uint64_t imm) in bl_gen_dli() argument
229 bl_gen_li(p, rt, extract64(imm, 32, 32)); in bl_gen_dli()
231 bl_gen_ori(p, rt, rt, extract64(imm, 16, 16)); in bl_gen_dli()
233 bl_gen_ori(p, rt, rt, extract64(imm, 0, 16)); in bl_gen_dli()
236 static void bl_gen_load_ulong(void **p, bl_reg rt, target_ulong imm) in bl_gen_load_ulong() argument
239 bl_gen_dli(p, rt, imm); /* 64bit */ in bl_gen_load_ulong()
241 bl_gen_li(p, rt, imm); /* 32bit */ in bl_gen_load_ulong()