[llvm-commits] CVS: llvm/lib/Target/PowerPC/README.txt
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 30 18:55:39 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
README.txt updated: 1.48 -> 1.49
---
Log message:
add the 'lucas' optimization
---
Diffs of the changes: (+25 -0)
README.txt | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+)
Index: llvm/lib/Target/PowerPC/README.txt
diff -u llvm/lib/Target/PowerPC/README.txt:1.48 llvm/lib/Target/PowerPC/README.txt:1.49
--- llvm/lib/Target/PowerPC/README.txt:1.48 Fri Jan 27 23:40:47 2006
+++ llvm/lib/Target/PowerPC/README.txt Mon Jan 30 20:55:28 2006
@@ -402,3 +402,28 @@
TargetConstantVec's if it's one of the many forms that are algorithmically
computable using the spiffy altivec instructions.
+===-------------------------------------------------------------------------===
+
+Compile this:
+
+double %test(double %X) {
+ %Y = cast double %X to long
+ %Z = cast long %Y to double
+ ret double %Z
+}
+
+to this:
+
+_test:
+ fctidz f0, f1
+ stfd f0, -8(r1)
+ lwz r2, -4(r1)
+ lwz r3, -8(r1)
+ stw r2, -12(r1)
+ stw r3, -16(r1)
+ lfd f0, -16(r1)
+ fcfid f1, f0
+ blr
+
+without the lwz/stw's.
+
More information about the llvm-commits
mailing list