summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-04 22:43:55 +0000
committerChris Lattner <sabre@nondot.org>2006-04-04 22:43:55 +0000
commit4464383a175dd121ca05fa7b35c0fa19933ceced (patch)
tree9b9079c36f209bb754cdb73452da4effa99a5be1 /llvm/lib
parent4a744e5c9d989c75fc51b91d34d97edebd495086 (diff)
downloadbcm5719-llvm-4464383a175dd121ca05fa7b35c0fa19933ceced.tar.gz
bcm5719-llvm-4464383a175dd121ca05fa7b35c0fa19933ceced.zip
add a note
llvm-svn: 27414
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/README_ALTIVEC.txt15
1 files changed, 13 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/README_ALTIVEC.txt b/llvm/lib/Target/PowerPC/README_ALTIVEC.txt
index 5aca1f4c3ce..4aff927b500 100644
--- a/llvm/lib/Target/PowerPC/README_ALTIVEC.txt
+++ b/llvm/lib/Target/PowerPC/README_ALTIVEC.txt
@@ -52,8 +52,6 @@ Missing intrinsics:
ds*
mf*
vavg*
-vmax*
-vmin*
vmladduhm
vmr*
vsel (some aliases only accessible using builtins)
@@ -64,6 +62,19 @@ FABS/FNEG can be codegen'd with the appropriate and/xor of -0.0.
//===----------------------------------------------------------------------===//
+Codegen the constant here with something better than a constant pool load.
+
+void %test_f(<4 x float>* %P, <4 x float>* %Q, float %X) {
+ %tmp = load <4 x float>* %Q
+ %tmp = cast <4 x float> %tmp to <4 x int>
+ %tmp1 = and <4 x int> %tmp, < int 2147483647, int 2147483647, int 2147483647, int 2147483647 >
+ %tmp2 = cast <4 x int> %tmp1 to <4 x float>
+ store <4 x float> %tmp2, <4 x float>* %P
+ ret void
+}
+
+//===----------------------------------------------------------------------===//
+
For functions that use altivec AND have calls, we are VRSAVE'ing all call
clobbered regs.
OpenPOWER on IntegriCloud