diff options
author | Chris Lattner <sabre@nondot.org> | 2007-03-31 07:06:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-03-31 07:06:25 +0000 |
commit | fcb1e61a4375c4bdb015aafcec559fc8e577da99 (patch) | |
tree | 0ddf4ce6714172a8d2830fcae458159828eba956 /lib/Target/PowerPC/README.txt | |
parent | c8d288f8fa9e46199a29e1954550c980f184bd1c (diff) |
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35530 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/README.txt')
-rw-r--r-- | lib/Target/PowerPC/README.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/README.txt b/lib/Target/PowerPC/README.txt index 864302f687..69e60fcb92 100644 --- a/lib/Target/PowerPC/README.txt +++ b/lib/Target/PowerPC/README.txt @@ -639,3 +639,26 @@ __ZNK4llvm5APInt17countLeadingZerosEv: 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 + +===-------------------------------------------------------------------------=== + |