Lines Matching refs:nimm
561 sljit_uw imm, nimm; in emit_op_imm() local
589 nimm = -imm; in emit_op_imm()
593 if (nimm <= 0x7) in emit_op_imm()
594 return push_inst16(compiler, SUBSI3 | IMM3(nimm) | RD3(dst) | RN3(reg)); in emit_op_imm()
598 if (nimm <= 0xff) in emit_op_imm()
599 return push_inst16(compiler, SUBSI8 | IMM8(nimm) | RDN3(dst)); in emit_op_imm()
605 if (nimm <= 0xfff) in emit_op_imm()
606 return push_inst32(compiler, SUBWI | RD4(dst) | RN4(reg) | IMM12(nimm)); in emit_op_imm()
608 nimm = get_imm(imm); in emit_op_imm()
609 if (nimm != INVALID_IMM) in emit_op_imm()
610 return push_inst32(compiler, ADD_WI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | nimm); in emit_op_imm()
611 nimm = get_imm(-imm); in emit_op_imm()
612 if (nimm != INVALID_IMM) in emit_op_imm()
613 return push_inst32(compiler, SUB_WI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | nimm); in emit_op_imm()
633 nimm = get_imm(imm); in emit_op_imm()
634 if (nimm != INVALID_IMM) in emit_op_imm()
635 return push_inst32(compiler, CMPI_W | RN4(reg) | nimm); in emit_op_imm()
636 nimm = get_imm(-imm); in emit_op_imm()
637 if (nimm != INVALID_IMM) in emit_op_imm()
638 return push_inst32(compiler, CMNI_W | RN4(reg) | nimm); in emit_op_imm()
640 nimm = -imm; in emit_op_imm()
644 if (nimm <= 0x7) in emit_op_imm()
645 return push_inst16(compiler, ADDSI3 | IMM3(nimm) | RD3(dst) | RN3(reg)); in emit_op_imm()
649 if (nimm <= 0xff) in emit_op_imm()
650 return push_inst16(compiler, ADDSI8 | IMM8(nimm) | RDN3(dst)); in emit_op_imm()
656 if (nimm <= 0xfff) in emit_op_imm()
657 return push_inst32(compiler, ADDWI | RD4(dst) | RN4(reg) | IMM12(nimm)); in emit_op_imm()
659 nimm = get_imm(imm); in emit_op_imm()
660 if (nimm != INVALID_IMM) in emit_op_imm()
661 return push_inst32(compiler, SUB_WI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | nimm); in emit_op_imm()
662 nimm = get_imm(-imm); in emit_op_imm()
663 if (nimm != INVALID_IMM) in emit_op_imm()
664 return push_inst32(compiler, ADD_WI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | nimm); in emit_op_imm()
674 nimm = get_imm(imm); in emit_op_imm()
675 if (nimm != INVALID_IMM) in emit_op_imm()
676 return push_inst32(compiler, ANDI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | nimm); in emit_op_imm()
682 nimm = get_imm(imm); in emit_op_imm()
683 if (nimm != INVALID_IMM) in emit_op_imm()
684 return push_inst32(compiler, ORRI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | nimm); in emit_op_imm()