Lines Matching refs:inst

226 	sljit_ins *inst;  in detect_jump_type()  local
244 inst = (sljit_ins *)jump->addr; in detect_jump_type()
246 inst--; in detect_jump_type()
255 diff = ((sljit_sw)target_addr - (sljit_sw)inst - executable_offset) >> 2; in detect_jump_type()
260 inst[0] = inst[-1]; in detect_jump_type()
261 inst[-1] = (jump->flags & IS_JAL) ? BAL : B; in detect_jump_type()
263 return inst; in detect_jump_type()
265 saved_inst = inst[0]; in detect_jump_type()
266 inst[0] = inst[-1]; in detect_jump_type()
267 inst[-1] = saved_inst ^ invert_branch(jump->flags); in detect_jump_type()
269 return inst; in detect_jump_type()
273 diff = ((sljit_sw)target_addr - (sljit_sw)(inst + 1) - executable_offset) >> 2; in detect_jump_type()
278 inst[0] = (jump->flags & IS_JAL) ? BAL : B; in detect_jump_type()
279 inst[1] = NOP; in detect_jump_type()
280 return inst + 1; in detect_jump_type()
282 inst[0] = inst[0] ^ invert_branch(jump->flags); in detect_jump_type()
283 inst[1] = NOP; in detect_jump_type()
285 return inst + 1; in detect_jump_type()
292 saved_inst = inst[0]; in detect_jump_type()
293 inst[0] = inst[-1]; in detect_jump_type()
294 inst[-1] = (saved_inst & 0xffff0000) | 3; in detect_jump_type()
295 inst[1] = J; in detect_jump_type()
296 inst[2] = NOP; in detect_jump_type()
297 return inst + 2; in detect_jump_type()
301 inst[0] = (inst[0] & 0xffff0000) | 3; in detect_jump_type()
302 inst[1] = NOP; in detect_jump_type()
303 inst[2] = J; in detect_jump_type()
304 inst[3] = NOP; in detect_jump_type()
306 return inst + 3; in detect_jump_type()
313 inst[0] = inst[-1]; in detect_jump_type()
314 inst[-1] = (jump->flags & IS_JAL) ? JAL : J; in detect_jump_type()
316 return inst; in detect_jump_type()
321 inst[0] = (jump->flags & IS_JAL) ? JAL : J; in detect_jump_type()
322 inst[1] = NOP; in detect_jump_type()
323 return inst + 1; in detect_jump_type()
332 inst[0] -= 4; in detect_jump_type()
333 inst++; in detect_jump_type()
335 inst[2] = inst[6]; in detect_jump_type()
336 inst[3] = inst[7]; in detect_jump_type()
337 return inst + 3; in detect_jump_type()
342 inst[0] -= 2; in detect_jump_type()
343 inst++; in detect_jump_type()
345 inst[4] = inst[6]; in detect_jump_type()
346 inst[5] = inst[7]; in detect_jump_type()
347 return inst + 5; in detect_jump_type()
1391 sljit_ins inst; in sljit_emit_fop1_cmp() local
1410 inst = C_UEQ_S; in sljit_emit_fop1_cmp()
1414 inst = C_ULT_S; in sljit_emit_fop1_cmp()
1418 inst = C_ULE_S; in sljit_emit_fop1_cmp()
1422 inst = C_UN_S; in sljit_emit_fop1_cmp()
1426 return push_inst(compiler, inst | FMT(op) | FT(src2) | FS(src1), UNMOVABLE_INS); in sljit_emit_fop1_cmp()
1624 inst = BEQ | SA(src) | TA(0) | JUMP_LENGTH; \
1629 inst = BNE | SA(src) | TA(0) | JUMP_LENGTH; \
1634 inst = BC1T | JUMP_LENGTH; \
1639 inst = BC1F | JUMP_LENGTH; \
1646 sljit_ins inst; in sljit_emit_jump() local
1695 inst = 0; in sljit_emit_jump()
1703 if (inst) in sljit_emit_jump()
1704 PTR_FAIL_IF(push_inst(compiler, inst, UNMOVABLE_INS)); in sljit_emit_jump()
1749 sljit_ins inst; in sljit_emit_cmp() local
1782 inst = NOP; in sljit_emit_cmp()
1787 inst = BLEZ; in sljit_emit_cmp()
1791 inst = BGTZ; in sljit_emit_cmp()
1795 inst = BGEZ; in sljit_emit_cmp()
1799 inst = BLTZ; in sljit_emit_cmp()
1809 inst = BGEZ; in sljit_emit_cmp()
1813 inst = BLTZ; in sljit_emit_cmp()
1817 inst = BLEZ; in sljit_emit_cmp()
1821 inst = BGTZ; in sljit_emit_cmp()
1826 PTR_FAIL_IF(push_inst(compiler, inst | S(src1) | JUMP_LENGTH, UNMOVABLE_INS)); in sljit_emit_cmp()