Mesa (master): rtasm: Add x86_div().
MichaŠKról
michal at kemper.freedesktop.org
Thu Jan 14 17:56:07 UTC 2010
Module: Mesa
Branch: master
Commit: 0f185cb027b12356895e424506846fa449e7c47f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0f185cb027b12356895e424506846fa449e7c47f
Author: Michal Krol <michal at vmware.com>
Date: Wed Dec 30 14:20:29 2009 +0100
rtasm: Add x86_div().
---
src/gallium/auxiliary/rtasm/rtasm_x86sse.c | 7 +++++++
src/gallium/auxiliary/rtasm/rtasm_x86sse.h | 1 +
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
index 1acf3c3..f675427 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
@@ -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);
+}
+
/***********************************************************************
diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.h b/src/gallium/auxiliary/rtasm/rtasm_x86sse.h
index 731a651..f7612d4 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.h
+++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.h
@@ -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 );
More information about the mesa-commit
mailing list