Lines Matching refs:inst

491 	sljit_ins *inst;  in detect_jump_type()  local
494 inst = (sljit_ins *)jump->addr; in detect_jump_type()
512 inst--; in detect_jump_type()
521 diff = ((sljit_sw)target_addr - (sljit_sw)inst - executable_offset) >> 2; in detect_jump_type()
526 inst[0] = inst[-1]; in detect_jump_type()
527 inst[-1] = (jump->flags & IS_JAL) ? BAL : B; in detect_jump_type()
529 return inst; in detect_jump_type()
531 saved_inst = inst[0]; in detect_jump_type()
532 inst[0] = inst[-1]; in detect_jump_type()
533 inst[-1] = saved_inst ^ invert_branch(jump->flags); in detect_jump_type()
535 return inst; in detect_jump_type()
538 diff = ((sljit_sw)target_addr - (sljit_sw)(inst + 1) - executable_offset) >> 2; in detect_jump_type()
543 inst[0] = (jump->flags & IS_JAL) ? BAL : B; in detect_jump_type()
545 return inst + 1; in detect_jump_type()
547 inst[0] ^= invert_branch(jump->flags); in detect_jump_type()
548 inst[1] = NOP; in detect_jump_type()
550 return inst + 1; in detect_jump_type()
557 saved_inst = inst[0]; in detect_jump_type()
558 inst[0] = inst[-1]; in detect_jump_type()
559 inst[-1] = (saved_inst & 0xffff0000) | 3; in detect_jump_type()
560 inst[1] = J; in detect_jump_type()
561 inst[2] = NOP; in detect_jump_type()
562 return inst + 2; in detect_jump_type()
566 inst[0] = (inst[0] & 0xffff0000) | 3; in detect_jump_type()
567 inst[1] = NOP; in detect_jump_type()
568 inst[2] = J; in detect_jump_type()
569 inst[3] = NOP; in detect_jump_type()
571 return inst + 3; in detect_jump_type()
578 inst[0] = inst[-1]; in detect_jump_type()
579 inst[-1] = (jump->flags & IS_JAL) ? JAL : J; in detect_jump_type()
581 return inst; in detect_jump_type()
586 inst[0] = (jump->flags & IS_JAL) ? JAL : J; in detect_jump_type()
588 return inst + 1; in detect_jump_type()
593 inst++; in detect_jump_type()
600 inst[-1] -= 4; in detect_jump_type()
602 inst[2] = inst[0]; in detect_jump_type()
603 inst[3] = inst[1]; in detect_jump_type()
604 return inst + 3; in detect_jump_type()
609 inst[-1] -= 2; in detect_jump_type()
611 inst[4] = inst[0]; in detect_jump_type()
612 inst[5] = inst[1]; in detect_jump_type()
613 return inst + 5; in detect_jump_type()
619 inst[2] = inst[0]; in detect_jump_type()
620 inst[3] = inst[1]; in detect_jump_type()
621 return inst + 3; in detect_jump_type()
623 inst[6] = inst[0]; in detect_jump_type()
624 inst[7] = inst[1]; in detect_jump_type()
625 return inst + 7; in detect_jump_type()
3035 sljit_ins inst; in sljit_emit_fop1_cmp() local
3050 inst = C_EQ_S; in sljit_emit_fop1_cmp()
3054 inst = C_UEQ_S; in sljit_emit_fop1_cmp()
3058 inst = C_OLT_S; in sljit_emit_fop1_cmp()
3062 inst = C_ULT_S; in sljit_emit_fop1_cmp()
3066 inst = C_ULE_S; in sljit_emit_fop1_cmp()
3070 inst = C_OLE_S; in sljit_emit_fop1_cmp()
3074 inst = C_UN_S; in sljit_emit_fop1_cmp()
3077 return push_inst(compiler, inst | FMT(op) | FT(src2) | FS(src1) | C_FD, UNMOVABLE_INS); in sljit_emit_fop1_cmp()
3254 inst = BEQ | SA(src) | TA(0) | BRANCH_LENGTH; \
3259 inst = BNE | SA(src) | TA(0) | BRANCH_LENGTH; \
3266 inst = BC1NEZ; \
3270 inst = BC1EQZ; \
3277 inst = BC1T | BRANCH_LENGTH; \
3281 inst = BC1F | BRANCH_LENGTH; \
3290 sljit_ins inst; in sljit_emit_jump() local
3351 inst = 0; in sljit_emit_jump()
3359 if (inst) in sljit_emit_jump()
3360 PTR_FAIL_IF(push_inst(compiler, inst, UNMOVABLE_INS)); in sljit_emit_jump()
3407 sljit_ins inst; in sljit_emit_cmp() local
3446 inst = NOP; in sljit_emit_cmp()
3451 inst = BLEZ; in sljit_emit_cmp()
3455 inst = BGTZ; in sljit_emit_cmp()
3459 inst = BGEZ; in sljit_emit_cmp()
3463 inst = BLTZ; in sljit_emit_cmp()
3473 inst = BGEZ; in sljit_emit_cmp()
3477 inst = BLTZ; in sljit_emit_cmp()
3481 inst = BLEZ; in sljit_emit_cmp()
3485 inst = BGTZ; in sljit_emit_cmp()
3490 PTR_FAIL_IF(push_inst(compiler, inst | S(src1) | BRANCH_LENGTH, UNMOVABLE_INS)); in sljit_emit_cmp()