diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-04-02 07:20:00 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-04-02 07:20:00 +0000 |
| commit | acf1fc8a28ff49e82dd32b6420504465721524bd (patch) | |
| tree | db9e66f4677b5691ea2e789299ee3653cf1c77de /llvm | |
| parent | c5287c0ece1e6f5b0cc0ee7310d25fd278e24362 (diff) | |
| download | bcm5719-llvm-acf1fc8a28ff49e82dd32b6420504465721524bd.tar.gz bcm5719-llvm-acf1fc8a28ff49e82dd32b6420504465721524bd.zip | |
add a note
llvm-svn: 27360
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/PowerPC/README.txt | 9 |
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. + +===-------------------------------------------------------------------------=== |

