From bf5c3140cac6192218372ece44532a934b94e884 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 22 Aug 2002 16:39:14 +0000 Subject: [PATCH] Convert testcases to not use indexed loads/stores llvm-svn: 3460 --- .../Regression/Transforms/GCSE/2002-05-14-OperandSwap.ll | 6 ++++-- .../LevelRaise/2002-03-14-ConvertableToGEPHang.ll | 2 +- .../Regression/Transforms/LevelRaise/2002-03-20-Crash.ll | 3 ++- .../Transforms/LevelRaise/2002-07-16-RaiseCrash.ll | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/llvm/test/Regression/Transforms/GCSE/2002-05-14-OperandSwap.ll b/llvm/test/Regression/Transforms/GCSE/2002-05-14-OperandSwap.ll index a75e298f7fa4..22296e344e73 100644 --- a/llvm/test/Regression/Transforms/GCSE/2002-05-14-OperandSwap.ll +++ b/llvm/test/Regression/Transforms/GCSE/2002-05-14-OperandSwap.ll @@ -9,8 +9,10 @@ implementation ; Functions: uint "vnum_test4"(uint* %data) { - %reg1101 = load uint* %data, uint 1 - %reg1111 = load uint* %data, uint 3 + %idx1 = getelementptr uint* %data, uint 1 + %idx2 = getelementptr uint* %data, uint 3 + %reg1101 = load uint* %idx1 + %reg1111 = load uint* %idx2 %reg109 = mul uint %reg1101, %reg1111 %reg108 = mul uint %reg1111, %reg1101 %reg121 = sub uint %reg108, %reg109 diff --git a/llvm/test/Regression/Transforms/LevelRaise/2002-03-14-ConvertableToGEPHang.ll b/llvm/test/Regression/Transforms/LevelRaise/2002-03-14-ConvertableToGEPHang.ll index 43ea8885ecdc..99547fdc261d 100644 --- a/llvm/test/Regression/Transforms/LevelRaise/2002-03-14-ConvertableToGEPHang.ll +++ b/llvm/test/Regression/Transforms/LevelRaise/2002-03-14-ConvertableToGEPHang.ll @@ -12,7 +12,7 @@ void "build_image_array"() begin bb0: ;[#uses=0] %reg109 = getelementptr %Disjunct * * * %chosen_disjuncts, uint 7 ; <%Disjunct * * *> [#uses=1] - %reg108 = load %Disjunct * * * %reg109, uint 0 ; <%Disjunct * *> [#uses=1] + %reg108 = load %Disjunct * * * %reg109 ; <%Disjunct * *> [#uses=1] %reg1000 = getelementptr %Disjunct * * %reg108, uint 3 ; <%Disjunct * *> [#uses=1] %cast1007 = cast %Disjunct * * %reg1000 to sbyte * * ; [#uses=1] %reg110 = load sbyte * * %cast1007 ; [#uses=1] diff --git a/llvm/test/Regression/Transforms/LevelRaise/2002-03-20-Crash.ll b/llvm/test/Regression/Transforms/LevelRaise/2002-03-20-Crash.ll index 7c240adc6129..81ba756b8672 100644 --- a/llvm/test/Regression/Transforms/LevelRaise/2002-03-20-Crash.ll +++ b/llvm/test/Regression/Transforms/LevelRaise/2002-03-20-Crash.ll @@ -12,6 +12,7 @@ begin bb0: ;[#uses=1] %cast121 = cast int 24 to %Village * ; <%Village *> [#uses=1] %reg123 = add %Village * %village, %cast121 ; <%Village *> [#uses=1] - %reg118 = load %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1] + %idx = getelementptr %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1] + %reg118 = load %Village** %idx ret %Village *%reg118 end diff --git a/llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll b/llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll index aafdf50d4bb8..3360911f3784 100644 --- a/llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll +++ b/llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll @@ -19,7 +19,7 @@ bb2: ;[#uses=3] %reg2281 = getelementptr sbyte*** %cast219, uint 6 ; [#uses=1] store sbyte** null, sbyte*** %reg2281 %reg2311 = getelementptr sbyte*** %cast219, uint 5 ; [#uses=1] - %reg114 = load sbyte*** %reg2311, uint 0 ; [#uses=2] + %reg114 = load sbyte*** %reg2311 ; [#uses=2] %cond234 = seteq sbyte** %reg114, null ; [#uses=1] br bool %cond234, label %bb4, label %bb3