diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-22 16:39:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-22 16:39:14 +0000 |
commit | 5a3e29c66122fe039f10cafb0607e0aa6c1bb2f4 (patch) | |
tree | 38659bf1d68469760da6916f65e966c66bfd7d47 /test | |
parent | 472e8086cc4a8b2f0099143e09a924a86e1097af (diff) | |
download | external_llvm-5a3e29c66122fe039f10cafb0607e0aa6c1bb2f4.zip external_llvm-5a3e29c66122fe039f10cafb0607e0aa6c1bb2f4.tar.gz external_llvm-5a3e29c66122fe039f10cafb0607e0aa6c1bb2f4.tar.bz2 |
Convert testcases to not use indexed loads/stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
4 files changed, 8 insertions, 5 deletions
diff --git a/test/Transforms/GCSE/2002-05-14-OperandSwap.ll b/test/Transforms/GCSE/2002-05-14-OperandSwap.ll index a75e298..22296e3 100644 --- a/test/Transforms/GCSE/2002-05-14-OperandSwap.ll +++ b/test/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/test/Transforms/LevelRaise/2002-03-14-ConvertableToGEPHang.ll b/test/Transforms/LevelRaise/2002-03-14-ConvertableToGEPHang.ll index 43ea888..99547fd 100644 --- a/test/Transforms/LevelRaise/2002-03-14-ConvertableToGEPHang.ll +++ b/test/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 * * ; <sbyte * *> [#uses=1] %reg110 = load sbyte * * %cast1007 ; <sbyte *> [#uses=1] diff --git a/test/Transforms/LevelRaise/2002-03-20-Crash.ll b/test/Transforms/LevelRaise/2002-03-20-Crash.ll index 7c240ad..81ba756 100644 --- a/test/Transforms/LevelRaise/2002-03-20-Crash.ll +++ b/test/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/test/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll b/test/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll index aafdf50..3360911 100644 --- a/test/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll +++ b/test/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll @@ -19,7 +19,7 @@ bb2: ;[#uses=3] %reg2281 = getelementptr sbyte*** %cast219, uint 6 ; <sbyte***> [#uses=1] store sbyte** null, sbyte*** %reg2281 %reg2311 = getelementptr sbyte*** %cast219, uint 5 ; <sbyte***> [#uses=1] - %reg114 = load sbyte*** %reg2311, uint 0 ; <sbyte**> [#uses=2] + %reg114 = load sbyte*** %reg2311 ; <sbyte**> [#uses=2] %cond234 = seteq sbyte** %reg114, null ; <bool> [#uses=1] br bool %cond234, label %bb4, label %bb3 |