Lines Matching refs:imm
455 void x86_mov_reg_imm( struct x86_function *p, struct x86_reg dst, int imm )
457 DUMP_RI( dst, imm );
461 emit_1i(p, imm);
464 void x86_mov_imm( struct x86_function *p, struct x86_reg dst, int imm )
466 DUMP_RI( dst, imm );
468 x86_mov_reg_imm(p, dst, imm);
473 emit_1i(p, imm);
477 void x86_mov16_imm( struct x86_function *p, struct x86_reg dst, uint16_t imm )
479 DUMP_RI( dst, imm );
484 emit_2ub(p, imm & 0xff, imm >> 8);
490 emit_2ub(p, imm & 0xff, imm >> 8);
494 void x86_mov8_imm( struct x86_function *p, struct x86_reg dst, uint8_t imm )
496 DUMP_RI( dst, imm );
500 emit_1ub(p, imm);
506 emit_1ub(p, imm);
515 unsigned op, struct x86_reg dst, int imm )
519 if(-0x80 <= imm && imm < 0x80) {
522 emit_1b(p, (char)imm);
527 emit_1i(p, imm);
531 void x86_add_imm( struct x86_function *p, struct x86_reg dst, int imm )
533 DUMP_RI( dst, imm );
534 x86_group1_imm(p, 0, dst, imm);
537 void x86_or_imm( struct x86_function *p, struct x86_reg dst, int imm )
539 DUMP_RI( dst, imm );
540 x86_group1_imm(p, 1, dst, imm);
543 void x86_and_imm( struct x86_function *p, struct x86_reg dst, int imm )
545 DUMP_RI( dst, imm );
546 x86_group1_imm(p, 4, dst, imm);
549 void x86_sub_imm( struct x86_function *p, struct x86_reg dst, int imm )
551 DUMP_RI( dst, imm );
552 x86_group1_imm(p, 5, dst, imm);
555 void x86_xor_imm( struct x86_function *p, struct x86_reg dst, int imm )
557 DUMP_RI( dst, imm );
558 x86_group1_imm(p, 6, dst, imm);
561 void x86_cmp_imm( struct x86_function *p, struct x86_reg dst, int imm )
563 DUMP_RI( dst, imm );
564 x86_group1_imm(p, 7, dst, imm);
637 void x86_retw( struct x86_function *p, unsigned short imm )
640 emit_3ub(p, 0xc2, imm & 0xff, (imm >> 8) & 0xff);
842 void x86_shr_imm( struct x86_function *p, struct x86_reg reg, unsigned imm )
844 DUMP_RI(reg, imm);
845 if(imm == 1)
854 emit_1ub(p, imm);
858 void x86_sar_imm( struct x86_function *p, struct x86_reg reg, unsigned imm )
860 DUMP_RI(reg, imm);
861 if(imm == 1)
870 emit_1ub(p, imm);
874 void x86_shl_imm( struct x86_function *p, struct x86_reg reg, unsigned imm )
876 DUMP_RI(reg, imm);
877 if(imm == 1)
886 emit_1ub(p, imm);
1422 void sse2_psllw_imm( struct x86_function *p, struct x86_reg dst, unsigned imm )
1424 DUMP_RI(dst, imm);
1427 emit_1ub(p, imm);
1430 void sse2_pslld_imm( struct x86_function *p, struct x86_reg dst, unsigned imm )
1432 DUMP_RI(dst, imm);
1435 emit_1ub(p, imm);
1438 void sse2_psllq_imm( struct x86_function *p, struct x86_reg dst, unsigned imm )
1440 DUMP_RI(dst, imm);
1443 emit_1ub(p, imm);
1446 void sse2_psrlw_imm( struct x86_function *p, struct x86_reg dst, unsigned imm )
1448 DUMP_RI(dst, imm);
1451 emit_1ub(p, imm);
1454 void sse2_psrld_imm( struct x86_function *p, struct x86_reg dst, unsigned imm )
1456 DUMP_RI(dst, imm);
1459 emit_1ub(p, imm);
1462 void sse2_psrlq_imm( struct x86_function *p, struct x86_reg dst, unsigned imm )
1464 DUMP_RI(dst, imm);
1467 emit_1ub(p, imm);
1470 void sse2_psraw_imm( struct x86_function *p, struct x86_reg dst, unsigned imm )
1472 DUMP_RI(dst, imm);
1475 emit_1ub(p, imm);
1478 void sse2_psrad_imm( struct x86_function *p, struct x86_reg dst, unsigned imm )
1480 DUMP_RI(dst, imm);
1483 emit_1ub(p, imm);