diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-13 16:48:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-13 16:48:00 +0000 |
commit | ed9379051708a6ef858bcfa4e300f126eb69c178 (patch) | |
tree | 8f9bc3845fa83304c05b9ea3b4fba2bf2ecde820 /lib/Target/PowerPC/README_ALTIVEC.txt | |
parent | 61e99c9db845f4824cac9c78c2245cceeb542213 (diff) | |
download | external_llvm-ed9379051708a6ef858bcfa4e300f126eb69c178.zip external_llvm-ed9379051708a6ef858bcfa4e300f126eb69c178.tar.gz external_llvm-ed9379051708a6ef858bcfa4e300f126eb69c178.tar.bz2 |
add a note, move an altivec todo to the altivec list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/README_ALTIVEC.txt')
-rw-r--r-- | lib/Target/PowerPC/README_ALTIVEC.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/README_ALTIVEC.txt b/lib/Target/PowerPC/README_ALTIVEC.txt index 78ea2cd..33e3e2a 100644 --- a/lib/Target/PowerPC/README_ALTIVEC.txt +++ b/lib/Target/PowerPC/README_ALTIVEC.txt @@ -138,3 +138,13 @@ C = vector_shuffle A, B, <0, 1, 2, 4> -> C = vsldoi A, B, 4 //===----------------------------------------------------------------------===// + +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. + +//===----------------------------------------------------------------------===// |