From 2b0679ff0b258518991c2d56de4805020eb0d2e0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 4 Nov 2002 06:09:46 +0000 Subject: [PATCH] Convert uint gep operands to long git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4528 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../LevelRaise/2002-02-14-BadAssertion.ll | 4 ++-- .../2002-03-14-ConvertableToGEPHang.ll | 4 ++-- test/Transforms/LevelRaise/2002-03-20-Crash.ll | 2 +- .../LevelRaise/2002-03-21-MissedRaise2.ll | 6 +++--- .../LevelRaise/2002-07-16-RaiseCrash.ll | 18 +++++++++--------- .../LevelRaise/2002-07-31-AssertionFailure.ll | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/test/Transforms/LevelRaise/2002-02-14-BadAssertion.ll b/test/Transforms/LevelRaise/2002-02-14-BadAssertion.ll index d2a07beadc0..7fcc83e90b2 100644 --- a/test/Transforms/LevelRaise/2002-02-14-BadAssertion.ll +++ b/test/Transforms/LevelRaise/2002-02-14-BadAssertion.ll @@ -10,8 +10,8 @@ int "do_merge"() begin %reg108 = call int %connect_left( ) %cast1002 = cast ulong 8 to sbyte * - %reg108-idxcast = cast int %reg108 to uint - %reg1000 = getelementptr sbyte * %cast1002, uint %reg108-idxcast + %reg108-idxcast = cast int %reg108 to long + %reg1000 = getelementptr sbyte * %cast1002, long %reg108-idxcast %cast1003 = cast sbyte * %reg1000 to sbyte * * %reg112 = load sbyte * * %cast1003 %cast111 = cast sbyte * %reg112 to int diff --git a/test/Transforms/LevelRaise/2002-03-14-ConvertableToGEPHang.ll b/test/Transforms/LevelRaise/2002-03-14-ConvertableToGEPHang.ll index 832d5d79f5e..59c9122ddf3 100644 --- a/test/Transforms/LevelRaise/2002-03-14-ConvertableToGEPHang.ll +++ b/test/Transforms/LevelRaise/2002-03-14-ConvertableToGEPHang.ll @@ -11,9 +11,9 @@ implementation void "build_image_array"() begin bb0: ;[#uses=0] - %reg109 = getelementptr %Disjunct * * * %chosen_disjuncts, uint 7 ; <%Disjunct * * *> [#uses=1] + %reg109 = getelementptr %Disjunct * * * %chosen_disjuncts, long 7 ; <%Disjunct * * *> [#uses=1] %reg108 = load %Disjunct * * * %reg109 ; <%Disjunct * *> [#uses=1] - %reg1000 = getelementptr %Disjunct * * %reg108, uint 3 ; <%Disjunct * *> [#uses=1] + %reg1000 = getelementptr %Disjunct * * %reg108, long 3 ; <%Disjunct * *> [#uses=1] %cast1007 = cast %Disjunct * * %reg1000 to sbyte * * ; [#uses=1] %reg110 = load sbyte * * %cast1007 ; [#uses=1] %cast1008 = cast ulong 4 to sbyte * ; [#uses=1] diff --git a/test/Transforms/LevelRaise/2002-03-20-Crash.ll b/test/Transforms/LevelRaise/2002-03-20-Crash.ll index 49fcd88b310..bd1ec5bbbc6 100644 --- a/test/Transforms/LevelRaise/2002-03-20-Crash.ll +++ b/test/Transforms/LevelRaise/2002-03-20-Crash.ll @@ -14,7 +14,7 @@ bb0: ;[#uses=1] %A = cast %Village* %village to ulong %reg123 = add ulong %A, %cast121 ; <%Village *> [#uses=1] %reg123 = cast ulong %reg123 to %Village* - %idx = getelementptr %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1] + %idx = getelementptr %Village * %reg123, long 0, ubyte 0, long 0 ; <%Village *> [#uses=1] %reg118 = load %Village** %idx ret %Village *%reg118 end diff --git a/test/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll b/test/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll index 8c3e664ba78..0a0772613fc 100644 --- a/test/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll +++ b/test/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll @@ -21,10 +21,10 @@ bb1: ;[#uses=0] %reg115 = malloc sbyte *, uint 1 ; [#uses=1] store sbyte * * %reg115, sbyte * * * %reg112 %reg121 = load sbyte * * * %reg112 ; [#uses=1] - %size-idxcast1 = cast int %size to uint ; [#uses=1] - %reg1221 = getelementptr sbyte * * %reg121, uint %size-idxcast1 ; [#uses=1] + %size-idxcast1 = cast int %size to long ; [#uses=1] + %reg1221 = getelementptr sbyte * * %reg121, long %size-idxcast1 ; [#uses=1] store sbyte * null, sbyte * * %reg1221 - %reg232 = getelementptr sbyte * * * %reg112, uint 1 ; [#uses=1] + %reg232 = getelementptr sbyte * * * %reg112, long 1 ; [#uses=1] %cast243 = cast int (uint) * %map to sbyte * * ; [#uses=1] store sbyte * * %cast243, sbyte * * * %reg232 %cast246 = cast sbyte * * * %reg112 to %Hash ; <%Hash> [#uses=1] diff --git a/test/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll b/test/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll index 3360911f378..faae968a8b4 100644 --- a/test/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll +++ b/test/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll @@ -12,13 +12,13 @@ bb0: ;[#uses=0] br bool %cond220, label %bb5, label %bb2 bb2: ;[#uses=3] - %reg2221 = getelementptr sbyte*** %cast219, uint 6 ; [#uses=1] + %reg2221 = getelementptr sbyte*** %cast219, long 6 ; [#uses=1] %reg108 = load sbyte*** %reg2221 ; [#uses=3] - %reg2251 = getelementptr sbyte** %reg108, uint 5 ; [#uses=1] + %reg2251 = getelementptr sbyte** %reg108, long 5 ; [#uses=1] store sbyte* null, sbyte** %reg2251 - %reg2281 = getelementptr sbyte*** %cast219, uint 6 ; [#uses=1] + %reg2281 = getelementptr sbyte*** %cast219, long 6 ; [#uses=1] store sbyte** null, sbyte*** %reg2281 - %reg2311 = getelementptr sbyte*** %cast219, uint 5 ; [#uses=1] + %reg2311 = getelementptr sbyte*** %cast219, long 5 ; [#uses=1] %reg114 = load sbyte*** %reg2311 ; [#uses=2] %cond234 = seteq sbyte** %reg114, null ; [#uses=1] br bool %cond234, label %bb4, label %bb3 @@ -26,12 +26,12 @@ bb2: ;[#uses=3] bb3: ;[#uses=4] %reg115 = phi sbyte*** [ %cast117, %bb3 ], [ %cast219, %bb2 ] ; [#uses=2] %reg116 = phi sbyte** [ %cast118, %bb3 ], [ %reg114, %bb2 ] ; [#uses=4] - %reg236 = getelementptr sbyte** %reg116, uint 5 ; [#uses=1] + %reg236 = getelementptr sbyte** %reg116, long 5 ; [#uses=1] %reg110 = load sbyte** %reg236 ; [#uses=1] - %reg239 = getelementptr sbyte** %reg116, uint 5 ; [#uses=1] + %reg239 = getelementptr sbyte** %reg116, long 5 ; [#uses=1] %cast241 = cast sbyte*** %reg115 to sbyte* ; [#uses=1] store sbyte* %cast241, sbyte** %reg239 - %reg242 = getelementptr sbyte*** %reg115, uint 6 ; [#uses=1] + %reg242 = getelementptr sbyte*** %reg115, long 6 ; [#uses=1] store sbyte** %reg116, sbyte*** %reg242 %cast117 = cast sbyte** %reg116 to sbyte*** ; [#uses=1] %cast118 = cast sbyte* %reg110 to sbyte** ; [#uses=2] @@ -39,9 +39,9 @@ bb3: ;[#uses=4] br bool %cond245, label %bb3, label %bb4 bb4: ;[#uses=2] - %reg247 = getelementptr sbyte*** %cast219, uint 5 ; [#uses=1] + %reg247 = getelementptr sbyte*** %cast219, long 5 ; [#uses=1] store sbyte** %reg108, sbyte*** %reg247 - %reg250 = getelementptr sbyte** %reg108, uint 6 ; [#uses=2] + %reg250 = getelementptr sbyte** %reg108, long 6 ; [#uses=2] cast sbyte** %reg250 to sbyte**** ; :0 [#uses=0] %cast252 = cast sbyte*** %cast219 to sbyte* ; [#uses=1] store sbyte* %cast252, sbyte** %reg250 diff --git a/test/Transforms/LevelRaise/2002-07-31-AssertionFailure.ll b/test/Transforms/LevelRaise/2002-07-31-AssertionFailure.ll index 978ad9d8285..6e76d5417c5 100644 --- a/test/Transforms/LevelRaise/2002-07-31-AssertionFailure.ll +++ b/test/Transforms/LevelRaise/2002-07-31-AssertionFailure.ll @@ -18,7 +18,7 @@ bb2: ;[#uses=3] bb5: ;[#uses=2] %reg125 = phi sbyte* [ %reg126, %bb2], [ null, %0 ] %reg263 = malloc sbyte*, uint 3 ; [#uses=4] - %reg2641 = getelementptr sbyte** %reg263, uint 1 ; [#uses=1] + %reg2641 = getelementptr sbyte** %reg263, long 1 ; [#uses=1] store sbyte* %reg125, sbyte** %reg2641 store sbyte* %reg125, sbyte** %reg263 %cast271 = cast sbyte** %reg263 to %CON_node* ; <%CON_node*> [#uses=1]