From 2979eb8f35d90f242488e2e515bb20d4407d6f34 Mon Sep 17 00:00:00 2001 From: Andreas Bolka Date: Wed, 5 Aug 2009 04:03:29 +0000 Subject: [PATCH] Fix LDA testcases. llvm-svn: 78153 --- .../Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll b/llvm/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll index f71260fb75a7..1e37750f7c5b 100644 --- a/llvm/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll +++ b/llvm/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll @@ -13,8 +13,8 @@ entry: for.body: %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ] %i.255 = sub i64 255, %i - %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i.255 - %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i + %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i + %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i.255 %x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i %x = load i32* %x.ld.addr ; 0 %y = load i32* %y.ld.addr ; 1 @@ -39,9 +39,9 @@ entry: for.body: %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ] - %i.255 = sub i64 0, %i + %i.255 = sub i64 255, %i %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i - %x.ld.addr = getelementptr [256 x i32]* @x, i64 1, i64 %i.255 + %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i.255 %x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i %x = load i32* %x.ld.addr ; 0 %y = load i32* %y.ld.addr ; 1