[llvm-commits] CVS: llvm/lib/Target/PowerPC/README.txt
Chris Lattner
sabre at nondot.org
Sat Mar 31 00:06:45 PDT 2007
Changes in directory llvm/lib/Target/PowerPC:
README.txt updated: 1.113 -> 1.114
---
Log message:
add a note
---
Diffs of the changes: (+23 -0)
README.txt | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+)
Index: llvm/lib/Target/PowerPC/README.txt
diff -u llvm/lib/Target/PowerPC/README.txt:1.113 llvm/lib/Target/PowerPC/README.txt:1.114
--- llvm/lib/Target/PowerPC/README.txt:1.113 Sun Mar 25 00:10:46 2007
+++ llvm/lib/Target/PowerPC/README.txt Sat Mar 31 02:06:25 2007
@@ -639,3 +639,26 @@
The dead or is a 'truncate' from 64- to 32-bits.
===-------------------------------------------------------------------------===
+
+We generate horrible ppc code for this:
+
+#define N 2000000
+double a[N],c[N];
+void simpleloop() {
+ int j;
+ for (j=0; j<N; j++)
+ c[j] = a[j];
+}
+
+LBB1_1: ;bb
+ lfdx f0, r3, r4
+ addi r5, r5, 1 ;; Extra IV for the exit value compare.
+ stfdx f0, r2, r4
+ addi r4, r4, 8
+
+ xoris r6, r5, 30 ;; This is due to a large immediate.
+ cmplwi cr0, r6, 33920
+ bne cr0, LBB1_1
+
+===-------------------------------------------------------------------------===
+
More information about the llvm-commits
mailing list