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

Chris Lattner lattner at cs.uiuc.edu
Tue Feb 18 13:45:01 PST 2003


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

add.ll updated: 1.4 -> 1.5

---
Log message:

Modernize testcase


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/InstCombine/add.ll
diff -u llvm/test/Regression/Transforms/InstCombine/add.ll:1.4 llvm/test/Regression/Transforms/InstCombine/add.ll:1.5
--- llvm/test/Regression/Transforms/InstCombine/add.ll:1.4	Tue Feb 18 13:43:21 2003
+++ llvm/test/Regression/Transforms/InstCombine/add.ll	Tue Feb 18 13:43:53 2003
@@ -10,25 +10,22 @@
 
 implementation
 
-int %test1(int %A)
-begin
+int %test1(int %A) {
 	%B = add int %A, 0
 	ret int %B
-end
+}
 
-int %test2(int %A)
-begin
+int %test2(int %A) {
 	%B = add int %A, 5
 	%C = add int %B, -5
 	ret int %C
-end
+}
 
-int %test3(int %A)
-begin
+int %test3(int %A) {
 	%B = add int %A, 5
 	%C = sub int %B, 5   ;; This should get converted to an add
 	ret int %C
-end
+}
 
 int %test4(int %A, int %B) {
         %C = sub int 0, %A





More information about the llvm-commits mailing list