summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-10-22 11:06:39 -0600
committerBrian Paul <[email protected]>2008-10-22 11:06:39 -0600
commit049f57f86a2cb8ff08fba819c581a034ca7ea52c (patch)
treebe7a5f6a7d4bf89f9b77ee5eb385a777bd64f723
parent3aea9c463b7c6b5ba63796ee84f65870662b6567 (diff)
gallium: added ppc_lvewx()
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_ppc.c7
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_ppc.h4
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 4a94ed0460d..aaec2d21918 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 6370b604944..53d5746dc89 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);
+
/**