Lines Matching refs:inst
322 sljit_ins *inst; in detect_jump_type() local
340 inst = (sljit_ins *)jump->addr; in detect_jump_type()
342 inst--; in detect_jump_type()
351 diff = ((sljit_sw)target_addr - (sljit_sw)inst - executable_offset) >> 2; in detect_jump_type()
356 inst[0] = inst[-1]; in detect_jump_type()
357 inst[-1] = (jump->flags & IS_JAL) ? BAL : B; in detect_jump_type()
359 return inst; in detect_jump_type()
361 saved_inst = inst[0]; in detect_jump_type()
362 inst[0] = inst[-1]; in detect_jump_type()
363 inst[-1] = saved_inst ^ invert_branch(jump->flags); in detect_jump_type()
365 return inst; in detect_jump_type()
369 diff = ((sljit_sw)target_addr - (sljit_sw)(inst + 1) - executable_offset) >> 2; in detect_jump_type()
374 inst[0] = (jump->flags & IS_JAL) ? BAL : B; in detect_jump_type()
375 inst[1] = NOP; in detect_jump_type()
376 return inst + 1; in detect_jump_type()
378 inst[0] ^= invert_branch(jump->flags); in detect_jump_type()
379 inst[1] = NOP; in detect_jump_type()
381 return inst + 1; in detect_jump_type()
388 saved_inst = inst[0]; in detect_jump_type()
389 inst[0] = inst[-1]; in detect_jump_type()
390 inst[-1] = (saved_inst & 0xffff0000) | 3; in detect_jump_type()
391 inst[1] = J; in detect_jump_type()
392 inst[2] = NOP; in detect_jump_type()
393 return inst + 2; in detect_jump_type()
397 inst[0] = (inst[0] & 0xffff0000) | 3; in detect_jump_type()
398 inst[1] = NOP; in detect_jump_type()
399 inst[2] = J; in detect_jump_type()
400 inst[3] = NOP; in detect_jump_type()
402 return inst + 3; in detect_jump_type()
409 inst[0] = inst[-1]; in detect_jump_type()
410 inst[-1] = (jump->flags & IS_JAL) ? JAL : J; in detect_jump_type()
412 return inst; in detect_jump_type()
417 inst[0] = (jump->flags & IS_JAL) ? JAL : J; in detect_jump_type()
418 inst[1] = NOP; in detect_jump_type()
419 return inst + 1; in detect_jump_type()
428 inst[0] -= 4; in detect_jump_type()
429 inst++; in detect_jump_type()
431 inst[2] = inst[6]; in detect_jump_type()
432 inst[3] = inst[7]; in detect_jump_type()
433 return inst + 3; in detect_jump_type()
438 inst[0] -= 2; in detect_jump_type()
439 inst++; in detect_jump_type()
441 inst[4] = inst[6]; in detect_jump_type()
442 inst[5] = inst[7]; in detect_jump_type()
443 return inst + 5; in detect_jump_type()
478 sljit_ins *inst = (sljit_ins *)put_label->addr; in put_label_set() local
479 sljit_u32 reg = *inst; in put_label_set()
483 inst[0] = LUI | T(reg) | IMM(addr >> 16); in put_label_set()
487 inst[0] = LUI | T(reg) | IMM(addr >> 32); in put_label_set()
488 inst[1] = ORI | S(reg) | T(reg) | IMM((addr >> 16) & 0xffff); in put_label_set()
489 inst[2] = DSLL | T(reg) | D(reg) | SH_IMM(16); in put_label_set()
490 inst += 2; in put_label_set()
493 inst[0] = LUI | T(reg) | IMM(addr >> 48); in put_label_set()
494 inst[1] = ORI | S(reg) | T(reg) | IMM((addr >> 32) & 0xffff); in put_label_set()
495 inst[2] = DSLL | T(reg) | D(reg) | SH_IMM(16); in put_label_set()
496 inst[3] = ORI | S(reg) | T(reg) | IMM((addr >> 16) & 0xffff); in put_label_set()
497 inst[4] = DSLL | T(reg) | D(reg) | SH_IMM(16); in put_label_set()
498 inst += 4; in put_label_set()
501 inst[1] = ORI | S(reg) | T(reg) | IMM(addr & 0xffff); in put_label_set()
1802 sljit_ins inst; in sljit_emit_fop1_cmp() local
1817 inst = C_UEQ_S; in sljit_emit_fop1_cmp()
1821 inst = C_ULT_S; in sljit_emit_fop1_cmp()
1825 inst = C_ULE_S; in sljit_emit_fop1_cmp()
1829 inst = C_UN_S; in sljit_emit_fop1_cmp()
1832 return push_inst(compiler, inst | FMT(op) | FT(src2) | FS(src1) | C_FD, UNMOVABLE_INS); in sljit_emit_fop1_cmp()
2009 inst = BEQ | SA(src) | TA(0) | JUMP_LENGTH; \
2014 inst = BNE | SA(src) | TA(0) | JUMP_LENGTH; \
2021 inst = BC1NEZ; \
2025 inst = BC1EQZ; \
2032 inst = BC1T | JUMP_LENGTH; \
2036 inst = BC1F | JUMP_LENGTH; \
2045 sljit_ins inst; in sljit_emit_jump() local
2094 inst = 0; in sljit_emit_jump()
2102 if (inst) in sljit_emit_jump()
2103 PTR_FAIL_IF(push_inst(compiler, inst, UNMOVABLE_INS)); in sljit_emit_jump()
2145 sljit_ins inst; in sljit_emit_cmp() local
2178 inst = NOP; in sljit_emit_cmp()
2183 inst = BLEZ; in sljit_emit_cmp()
2187 inst = BGTZ; in sljit_emit_cmp()
2191 inst = BGEZ; in sljit_emit_cmp()
2195 inst = BLTZ; in sljit_emit_cmp()
2205 inst = BGEZ; in sljit_emit_cmp()
2209 inst = BLTZ; in sljit_emit_cmp()
2213 inst = BLEZ; in sljit_emit_cmp()
2217 inst = BGTZ; in sljit_emit_cmp()
2222 PTR_FAIL_IF(push_inst(compiler, inst | S(src1) | JUMP_LENGTH, UNMOVABLE_INS)); in sljit_emit_cmp()