[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/getelementptr.ll

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 17 15:48:01 PDT 2002


Changes in directory llvm/test/Regression/Transforms/InstCombine:

getelementptr.ll updated: 1.5 -> 1.6

---
Log message:

Convert to use long indexes instead of uint


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/InstCombine/getelementptr.ll
diff -u llvm/test/Regression/Transforms/InstCombine/getelementptr.ll:1.5 llvm/test/Regression/Transforms/InstCombine/getelementptr.ll:1.6
--- llvm/test/Regression/Transforms/InstCombine/getelementptr.ll:1.5	Fri Aug 16 16:18:21 2002
+++ llvm/test/Regression/Transforms/InstCombine/getelementptr.ll	Tue Sep 17 15:47:46 2002
@@ -10,7 +10,7 @@
 implementation
 
 int *"foo1"(int * %I) { ; Test noop elimination
-	%A = getelementptr int* %I, uint 0
+	%A = getelementptr int* %I, long 0
 	ret int * %A
 }
 
@@ -19,19 +19,19 @@
 	ret int* %A
 }
 int* %foo3(int * %I) { ; Test that two array indexing geps fold
-	%A = getelementptr int* %I, uint 17
-	%B = getelementptr int* %A, uint 4
+	%A = getelementptr int* %I, long 17
+	%B = getelementptr int* %A, long 4
 	ret int* %B
 }
 
 int* %foo4({int} *%I) { ; Test that two getelementptr insts fold
-	%A = getelementptr {int}* %I, uint 1
-	%B = getelementptr {int}* %A, uint 0, ubyte 0
+	%A = getelementptr {int}* %I, long 1
+	%B = getelementptr {int}* %A, long 0, ubyte 0
 	ret int* %B
 }
 
 sbyte * %foo5() {
 	; This should be turned into a constexpr instead of being an instruction
-	%A = getelementptr [10 x sbyte]* %Global, uint 0, uint 4
+	%A = getelementptr [10 x sbyte]* %Global, long 0, long 4
 	ret sbyte* %A
 }





More information about the llvm-commits mailing list