Lines Matching refs:opr1
86 s64 opr1; in apply_r_larch_sop_push_dup() local
88 err = rela_stack_pop(&opr1, rela_stack, rela_stack_top); in apply_r_larch_sop_push_dup()
91 err = rela_stack_push(opr1, rela_stack, rela_stack_top); in apply_r_larch_sop_push_dup()
94 err = rela_stack_push(opr1, rela_stack, rela_stack_top); in apply_r_larch_sop_push_dup()
119 s64 opr1, opr2, opr3; in apply_r_larch_sop() local
130 err = rela_stack_pop(&opr1, rela_stack, rela_stack_top); in apply_r_larch_sop()
136 err = rela_stack_push(opr1 & opr2, rela_stack, rela_stack_top); in apply_r_larch_sop()
139 err = rela_stack_push(opr1 + opr2, rela_stack, rela_stack_top); in apply_r_larch_sop()
142 err = rela_stack_push(opr1 - opr2, rela_stack, rela_stack_top); in apply_r_larch_sop()
145 err = rela_stack_push(opr1 << opr2, rela_stack, rela_stack_top); in apply_r_larch_sop()
148 err = rela_stack_push(opr1 >> opr2, rela_stack, rela_stack_top); in apply_r_larch_sop()
151 err = rela_stack_push(opr1 ? opr2 : opr3, rela_stack, rela_stack_top); in apply_r_larch_sop()
165 s64 opr1; in apply_r_larch_sop_imm_field() local
168 err = rela_stack_pop(&opr1, rela_stack, rela_stack_top); in apply_r_larch_sop_imm_field()
174 if (!unsigned_imm_check(opr1, 12)) in apply_r_larch_sop_imm_field()
178 insn->reg2i12_format.immediate = opr1 & 0xfff; in apply_r_larch_sop_imm_field()
181 if (!signed_imm_check(opr1, 12)) in apply_r_larch_sop_imm_field()
184 insn->reg2i12_format.immediate = opr1 & 0xfff; in apply_r_larch_sop_imm_field()
187 if (!signed_imm_check(opr1, 16)) in apply_r_larch_sop_imm_field()
190 insn->reg2i16_format.immediate = opr1 & 0xffff; in apply_r_larch_sop_imm_field()
193 if (opr1 % 4) in apply_r_larch_sop_imm_field()
196 if (!signed_imm_check(opr1, 18)) in apply_r_larch_sop_imm_field()
199 insn->reg2i16_format.immediate = (opr1 >> 2) & 0xffff; in apply_r_larch_sop_imm_field()
202 if (!signed_imm_check(opr1, 20)) in apply_r_larch_sop_imm_field()
205 insn->reg1i20_format.immediate = (opr1) & 0xfffff; in apply_r_larch_sop_imm_field()
208 if (opr1 % 4) in apply_r_larch_sop_imm_field()
211 if (!signed_imm_check(opr1, 23)) in apply_r_larch_sop_imm_field()
214 opr1 >>= 2; in apply_r_larch_sop_imm_field()
215 insn->reg1i21_format.immediate_l = opr1 & 0xffff; in apply_r_larch_sop_imm_field()
216 insn->reg1i21_format.immediate_h = (opr1 >> 16) & 0x1f; in apply_r_larch_sop_imm_field()
219 if (opr1 % 4) in apply_r_larch_sop_imm_field()
222 if (!signed_imm_check(opr1, 28)) in apply_r_larch_sop_imm_field()
225 opr1 >>= 2; in apply_r_larch_sop_imm_field()
226 insn->reg0i26_format.immediate_l = opr1 & 0xffff; in apply_r_larch_sop_imm_field()
227 insn->reg0i26_format.immediate_h = (opr1 >> 16) & 0x3ff; in apply_r_larch_sop_imm_field()
230 if (!unsigned_imm_check(opr1, 32)) in apply_r_larch_sop_imm_field()
234 *location = (u32)opr1; in apply_r_larch_sop_imm_field()
243 mod->name, opr1, __func__, type); in apply_r_larch_sop_imm_field()
248 mod->name, opr1, __func__, type); in apply_r_larch_sop_imm_field()