diff options
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 |