summaryrefslogtreecommitdiffstats
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
commitacf1fc8a28ff49e82dd32b6420504465721524bd (patch)
treedb9e66f4677b5691ea2e789299ee3653cf1c77de
parentc5287c0ece1e6f5b0cc0ee7310d25fd278e24362 (diff)
downloadbcm5719-llvm-acf1fc8a28ff49e82dd32b6420504465721524bd.tar.gz
bcm5719-llvm-acf1fc8a28ff49e82dd32b6420504465721524bd.zip
add a note
llvm-svn: 27360
-rw-r--r--llvm/lib/Target/PowerPC/README.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/README.txt b/llvm/lib/Target/PowerPC/README.txt
index 14a0bc124ed..e29dd52e282 100644
--- a/llvm/lib/Target/PowerPC/README.txt
+++ b/llvm/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.
+
+===-------------------------------------------------------------------------===
OpenPOWER on IntegriCloud