summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/README.txt
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-02 07:20:00 +0000
committerChris Lattner <sabre@nondot.org>2006-04-02 07:20:00 +0000
commit220d2b89d69b7f78b6baac357b857475d53f6407 (patch)
treebd324b6d0042b6b79ac771db52001020c3d82030 /lib/Target/PowerPC/README.txt
parentbbe77de450ef36b4f83cc3b57705a9758adbd925 (diff)
downloadllvm-220d2b89d69b7f78b6baac357b857475d53f6407.tar.gz
llvm-220d2b89d69b7f78b6baac357b857475d53f6407.tar.bz2
llvm-220d2b89d69b7f78b6baac357b857475d53f6407.tar.xz
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/README.txt')
-rw-r--r--lib/Target/PowerPC/README.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/README.txt b/lib/Target/PowerPC/README.txt
index 14a0bc124e..e29dd52e28 100644
--- a/lib/Target/PowerPC/README.txt
+++ b/lib/Target/PowerPC/README.txt
@@ -551,3 +551,12 @@ void func(unsigned int *ret, float dx, float dy, float dz, float dw) {
===-------------------------------------------------------------------------===
+extract_vector_elt of an arbitrary constant vector can be done with the
+following instructions:
+
+vTemp = vec_splat(v0,2); // 2 is the element the src is in.
+vec_ste(&destloc,0,vTemp);
+
+We can do an arbitrary non-constant value by using lvsr/perm/ste.
+
+===-------------------------------------------------------------------------===