Mesa (gallium-0.1): rtasm: add sse_movntps

Keith Whitwell keithw at kemper.freedesktop.org
Fri Oct 3 16:26:10 UTC 2008


Module: Mesa
Branch: gallium-0.1
Commit: 6965532e14717f71a6f4353fb683c5070c6b7d7a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6965532e14717f71a6f4353fb683c5070c6b7d7a

Author: Keith Whitwell <keith at tungstengraphics.com>
Date:   Fri Oct  3 13:50:34 2008 +0100

rtasm: add sse_movntps

---

 src/gallium/auxiliary/rtasm/rtasm_x86sse.c |   12 ++++++++++++
 src/gallium/auxiliary/rtasm/rtasm_x86sse.h |    2 ++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
index 9085f4c..cc5871f 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
@@ -653,6 +653,18 @@ void sse_prefetch1( struct x86_function *p, struct x86_reg ptr)
    emit_modrm_noreg(p, 2, ptr);
 }
 
+void sse_movntps( struct x86_function *p, 
+                  struct x86_reg dst,
+                  struct x86_reg src)
+{
+   DUMP_RR( dst, reg );
+
+   assert(dst.mod != mod_REG);
+   assert(src.mod == mod_REG);
+   emit_2ub(p, 0x0f, 0x2b);
+   emit_modrm(p, src, dst);
+}
+
 
 
 
diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.h b/src/gallium/auxiliary/rtasm/rtasm_x86sse.h
index 2d7715f..af79f07 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.h
+++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.h
@@ -189,6 +189,8 @@ void sse_prefetchnta( struct x86_function *p, struct x86_reg ptr);
 void sse_prefetch0( struct x86_function *p, struct x86_reg ptr);
 void sse_prefetch1( struct x86_function *p, struct x86_reg ptr);
 
+void sse_movntps( struct x86_function *p, struct x86_reg dst, struct x86_reg src);
+
 void sse_addps( struct x86_function *p, struct x86_reg dst, struct x86_reg src );
 void sse_addss( struct x86_function *p, struct x86_reg dst, struct x86_reg src );
 void sse_cvtps2pi( struct x86_function *p, struct x86_reg dst, struct x86_reg src );




More information about the mesa-commit mailing list