[llvm-commits] CVS: llvm/test/Regression/Transforms/LevelRaise/2002-02-11-ArrayShape.ll 2002-03-20-BadCodegen.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed May 14 13:38:00 PDT 2003
Changes in directory llvm/test/Regression/Transforms/LevelRaise:
2002-02-11-ArrayShape.ll updated: 1.1 -> 1.2
2002-03-20-BadCodegen.ll updated: 1.1 -> 1.2
---
Log message:
Modernize testcases
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/LevelRaise/2002-02-11-ArrayShape.ll
diff -u llvm/test/Regression/Transforms/LevelRaise/2002-02-11-ArrayShape.ll:1.1 llvm/test/Regression/Transforms/LevelRaise/2002-02-11-ArrayShape.ll:1.2
--- llvm/test/Regression/Transforms/LevelRaise/2002-02-11-ArrayShape.ll:1.1 Mon Feb 11 17:44:06 2002
+++ llvm/test/Regression/Transforms/LevelRaise/2002-02-11-ArrayShape.ll Wed May 14 13:37:03 2003
@@ -51,10 +51,9 @@
%reg111 = add uint %reg110, %cast1039 ; <uint> [#uses=1]
%reg113 = shl uint %reg111, ubyte 2 ; <uint> [#uses=1]
%cast115 = cast uint %reg113 to ulong ; <ulong> [#uses=1]
- %cast114 = cast ulong %cast115 to sbyte * ; <sbyte *> [#uses=1]
- %cast1040 = cast [200 x int] * %cast1032 to sbyte * ; <sbyte *> [#uses=1]
- %reg118 = add sbyte * %cast1040, %cast114 ; <sbyte *> [#uses=1]
- %cast1041 = cast sbyte * %reg118 to int * ; <int *> [#uses=1]
+ %cast1040 = cast [200 x int] * %cast1032 to ulong ; <sbyte *> [#uses=1]
+ %reg118 = add ulong %cast1040, %cast115 ; <sbyte *> [#uses=1]
+ %cast1041 = cast ulong %reg118 to int * ; <int *> [#uses=1]
%reg120 = load int * %cast1041 ; <int> [#uses=1]
%cast119 = cast int %reg120 to double ; <double> [#uses=1]
%reg128 = add double %reg126, %cast119 ; <double> [#uses=2]
Index: llvm/test/Regression/Transforms/LevelRaise/2002-03-20-BadCodegen.ll
diff -u llvm/test/Regression/Transforms/LevelRaise/2002-03-20-BadCodegen.ll:1.1 llvm/test/Regression/Transforms/LevelRaise/2002-03-20-BadCodegen.ll:1.2
--- llvm/test/Regression/Transforms/LevelRaise/2002-03-20-BadCodegen.ll:1.1 Wed Mar 20 21:01:14 2002
+++ llvm/test/Regression/Transforms/LevelRaise/2002-03-20-BadCodegen.ll Wed May 14 13:37:03 2003
@@ -16,8 +16,7 @@
ret void
end
-void "main"(int %argc, sbyte **%argv)
-begin
+int %main(int %argc, sbyte **%argv) {
; <label>:0 ;[#uses=0]
%fval = alloca %Village *, uint 4 ; <%Village * *> [#uses=1]
%reg115 = malloc sbyte, uint 184 ; <sbyte *> [#uses=2]
@@ -37,11 +36,9 @@
%cast366 = cast int %reg176 to uint ; <uint> [#uses=1]
%reg159 = shl uint %cast366, ubyte 3 ; <uint> [#uses=1]
%cast161 = cast uint %reg159 to ulong ; <ulong> [#uses=1]
- %cast160 = cast ulong %cast161 to sbyte * ; <sbyte *> [#uses=2]
- %reg162 = add sbyte * %reg115, %cast160 ; <sbyte *> [#uses=0]
- %cast367 = cast %Village * * %fval to sbyte * ; <sbyte *> [#uses=1]
- %reg169 = add sbyte * %cast367, %cast160 ; <sbyte *> [#uses=1]
- %cast368 = cast sbyte * %reg169 to sbyte * * ; <sbyte * *> [#uses=1]
+ %cast367 = cast %Village * * %fval to ulong ; <sbyte *> [#uses=1]
+ %reg169 = add ulong %cast367, %cast161
+ %cast368 = cast ulong %reg169 to sbyte * * ; <sbyte * *> [#uses=1]
%reg170 = load sbyte * * %cast368 ; <sbyte *> [#uses=1]
%V = cast sbyte *%reg170 to %Village*
call void %foo(%Village *%V)
@@ -50,5 +47,5 @@
br bool %cond303, label %bb6, label %bb7
bb7: ;[#uses=1]
- ret void
-end
+ ret int 0
+}
More information about the llvm-commits
mailing list