mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
rtasm: Add x86_div().
This commit is contained in:
parent
7ca0ce3834
commit
0f185cb027
2 changed files with 8 additions and 0 deletions
|
|
@ -673,6 +673,13 @@ void x86_and( struct x86_function *p,
|
|||
emit_op_modrm( p, 0x23, 0x21, dst, src );
|
||||
}
|
||||
|
||||
void x86_div( struct x86_function *p,
|
||||
struct x86_reg src )
|
||||
{
|
||||
assert(src.file == file_REG32 && src.mod == mod_REG);
|
||||
emit_op_modrm(p, 0xf7, 0, x86_make_reg(file_REG32, 6), src);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
|||
|
|
@ -244,6 +244,7 @@ void x86_sub( struct x86_function *p, struct x86_reg dst, struct x86_reg src );
|
|||
void x86_test( struct x86_function *p, struct x86_reg dst, struct x86_reg src );
|
||||
void x86_xor( struct x86_function *p, struct x86_reg dst, struct x86_reg src );
|
||||
void x86_sahf( struct x86_function *p );
|
||||
void x86_div( struct x86_function *p, struct x86_reg src );
|
||||
|
||||
|
||||
void x86_cdecl_caller_push_regs( struct x86_function *p );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue