Mesa (gallium-0.2): gallium: added ppc_lvewx()

Brian Paul brianp at kemper.freedesktop.org
Wed Oct 22 17:15:51 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 049f57f86a2cb8ff08fba819c581a034ca7ea52c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=049f57f86a2cb8ff08fba819c581a034ca7ea52c

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Wed Oct 22 11:06:39 2008 -0600

gallium: added ppc_lvewx()

---

 src/gallium/auxiliary/rtasm/rtasm_ppc.c |    7 +++++++
 src/gallium/auxiliary/rtasm/rtasm_ppc.h |    4 ++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc.c b/src/gallium/auxiliary/rtasm/rtasm_ppc.c
index 4a94ed0..aaec2d2 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_ppc.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_ppc.c
@@ -582,6 +582,13 @@ ppc_lvx(struct ppc_function *p, uint vR, uint vA, uint vB)
    emit_x(p, 31, vR, vA, vB, 103);
 }
 
+/** load vector element word: vR = mem_word[vA+vB] */
+void
+ppc_lvewx(struct ppc_function *p, uint vR, uint vA, uint vB)
+{
+   emit_x(p, 31, vR, vA, vB, 71);
+}
+
 
 
 /**
diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc.h b/src/gallium/auxiliary/rtasm/rtasm_ppc.h
index 6370b60..53d5746 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_ppc.h
+++ b/src/gallium/auxiliary/rtasm/rtasm_ppc.h
@@ -153,6 +153,10 @@ ppc_stvx(struct ppc_function *p, uint vR, uint vA, uint vB);
 extern void
 ppc_lvx(struct ppc_function *p, uint vR, uint vA, uint vB);
 
+/** load vector element word: vR = mem_word[vA+vB] */
+extern void
+ppc_lvewx(struct ppc_function *p, uint vR, uint vA, uint vB);
+
 
 
 /**




More information about the mesa-commit mailing list