Lines Matching refs:inst

31 	sljit_u8 *inst;  in emit_do_imm()  local
33 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1 + sizeof(sljit_sw)); in emit_do_imm()
34 FAIL_IF(!inst); in emit_do_imm()
36 *inst++ = opcode; in emit_do_imm()
37 sljit_unaligned_store_sw(inst, imm); in emit_do_imm()
73 sljit_u8 *inst; in sljit_emit_enter() local
111 inst = (sljit_u8*)ensure_buf(compiler, 1 + size); in sljit_emit_enter()
112 FAIL_IF(!inst); in sljit_emit_enter()
118 *inst++ = MOV_r_rm; in sljit_emit_enter()
119 *inst++ = MOD_REG | (reg_map[TMP_REG1] << 3) | 0x4 /* esp */; in sljit_emit_enter()
131 inst[0] = MOV_r_rm; in sljit_emit_enter()
132 inst[1] = MOD_REG | (reg_map[SLJIT_S0] << 3) | reg_map[SLJIT_R2]; in sljit_emit_enter()
133 inst += 2; in sljit_emit_enter()
136 inst[0] = MOV_r_rm; in sljit_emit_enter()
137 inst[1] = MOD_REG | (reg_map[SLJIT_S1] << 3) | reg_map[SLJIT_R1]; in sljit_emit_enter()
138 inst += 2; in sljit_emit_enter()
141 inst[0] = MOV_r_rm; in sljit_emit_enter()
142 inst[1] = MOD_DISP8 | (reg_map[SLJIT_S2] << 3) | 0x4 /* esp */; in sljit_emit_enter()
143 inst[2] = 0x24; in sljit_emit_enter()
144 inst[3] = sizeof(sljit_sw) * (3 + 2); /* saveds >= 3 as well. */ in sljit_emit_enter()
148 inst[0] = MOV_r_rm; in sljit_emit_enter()
149 inst[1] = MOD_DISP8 | (reg_map[SLJIT_S0] << 3) | reg_map[TMP_REG1]; in sljit_emit_enter()
150 inst[2] = sizeof(sljit_sw) * 2; in sljit_emit_enter()
151 inst += 3; in sljit_emit_enter()
154 inst[0] = MOV_r_rm; in sljit_emit_enter()
155 inst[1] = MOD_DISP8 | (reg_map[SLJIT_S1] << 3) | reg_map[TMP_REG1]; in sljit_emit_enter()
156 inst[2] = sizeof(sljit_sw) * 3; in sljit_emit_enter()
157 inst += 3; in sljit_emit_enter()
160 inst[0] = MOV_r_rm; in sljit_emit_enter()
161 inst[1] = MOD_DISP8 | (reg_map[SLJIT_S2] << 3) | reg_map[TMP_REG1]; in sljit_emit_enter()
162 inst[2] = sizeof(sljit_sw) * 4; in sljit_emit_enter()
203 inst = (sljit_u8*)ensure_buf(compiler, 1 + 2); in sljit_emit_enter()
204 FAIL_IF(!inst); in sljit_emit_enter()
207 inst[0] = JNE_i8; in sljit_emit_enter()
208 inst[1] = (sljit_s8) -16; in sljit_emit_enter()
231 inst = (sljit_u8*)ensure_buf(compiler, 1 + 6); in sljit_emit_enter()
232 FAIL_IF(!inst); in sljit_emit_enter()
235 inst[0] = GROUP_BINARY_81; in sljit_emit_enter()
236 inst[1] = MOD_REG | AND | reg_map[SLJIT_SP]; in sljit_emit_enter()
237 sljit_unaligned_store_sw(inst + 2, ~(sizeof(sljit_f64) - 1)); in sljit_emit_enter()
292 sljit_u8 *inst; in sljit_emit_return() local
319 inst = (sljit_u8*)ensure_buf(compiler, 1 + size); in sljit_emit_return()
320 FAIL_IF(!inst); in sljit_emit_return()
354 sljit_u8 *inst; in emit_x86_instruction() local
426 inst = (sljit_u8*)ensure_buf(compiler, 1 + inst_size); in emit_x86_instruction()
427 PTR_FAIL_IF(!inst); in emit_x86_instruction()
432 *inst++ = 0xf2; in emit_x86_instruction()
434 *inst++ = 0xf3; in emit_x86_instruction()
436 *inst++ = 0x66; in emit_x86_instruction()
438 buf_ptr = inst + size; in emit_x86_instruction()
443 *inst = (flags & EX86_BYTE_ARG) ? GROUP_BINARY_83 : GROUP_BINARY_81; in emit_x86_instruction()
455 *inst = GROUP_SHIFT_1; in emit_x86_instruction()
457 *inst = GROUP_SHIFT_N; in emit_x86_instruction()
459 *inst = GROUP_SHIFT_CL; in emit_x86_instruction()
510 return !(flags & EX86_SHIFT_INS) ? inst : (inst + 1); in emit_x86_instruction()
553 sljit_u8 *inst; in c_fast_call_with_args() local
557 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1); in c_fast_call_with_args()
558 FAIL_IF(!inst); in c_fast_call_with_args()
604 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1); in c_fast_call_with_args()
605 FAIL_IF(!inst); in c_fast_call_with_args()
608 *inst++ = XCHG_EAX_r | reg_map[SLJIT_R2]; in c_fast_call_with_args()
611 inst = (sljit_u8*)ensure_buf(compiler, 1 + 2); in c_fast_call_with_args()
612 FAIL_IF(!inst); in c_fast_call_with_args()
615 *inst++ = MOV_r_rm; in c_fast_call_with_args()
616 *inst++ = MOD_REG | (reg_map[SLJIT_R2] << 3) | reg_map[SLJIT_R0]; in c_fast_call_with_args()
706 sljit_u8 *inst; in post_call_with_args() local
718 inst = (sljit_u8*)ensure_buf(compiler, 1 + 3); in post_call_with_args()
719 FAIL_IF(!inst); in post_call_with_args()
721 inst[0] = single ? FSTPS : FSTPD; in post_call_with_args()
722 inst[1] = (0x03 << 3) | 0x04; in post_call_with_args()
723 inst[2] = (0x04 << 3) | reg_map[SLJIT_SP]; in post_call_with_args()
839 sljit_u8 *inst; in sljit_emit_fast_enter() local
853 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1); in sljit_emit_fast_enter()
854 FAIL_IF(!inst); in sljit_emit_fast_enter()
862 inst = emit_x86_instruction(compiler, 1, 0, 0, dst, dstw); in sljit_emit_fast_enter()
863 FAIL_IF(!inst); in sljit_emit_fast_enter()
864 *inst++ = POP_rm; in sljit_emit_fast_enter()
870 sljit_u8 *inst; in emit_fast_return() local
875 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1 + 1); in emit_fast_return()
876 FAIL_IF(!inst); in emit_fast_return()
882 inst = emit_x86_instruction(compiler, 1, 0, 0, src, srcw); in emit_fast_return()
883 FAIL_IF(!inst); in emit_fast_return()
884 *inst++ = GROUP_FF; in emit_fast_return()
885 *inst |= PUSH_rm; in emit_fast_return()
887 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1); in emit_fast_return()
888 FAIL_IF(!inst); in emit_fast_return()