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

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

sub.ll updated: 1.7 -> 1.8

---
Log message:

---
Diffs of the changes:

--- llvm/test/Regression/Transforms/InstCombine/add.ll:1.5	Tue Feb 18 13:43:53 2003
+++ llvm/test/Regression/Transforms/InstCombine/add.ll	Tue Feb 18 13:55:31 2003
@@ -39,3 +39,15 @@
ret int %D
}

+int %test6(int %A) {
+        %B = mul int 7, %A
+        %C = add int %B, %A      ; C = 7*A+A == 8*A == A << 3
+        ret int %C
+}
+
+int %test7(int %A) {
+        %B = mul int 7, %A
+        %C = add int %A, %B      ; C = A+7*A == 8*A == A << 3
+        ret int %C
+}
+

Index: llvm/test/Regression/Transforms/InstCombine/sub.ll
diff -u llvm/test/Regression/Transforms/InstCombine/sub.ll:1.7 llvm/test/Regression/Transforms/InstCombine/sub.ll:1.8
--- llvm/test/Regression/Transforms/InstCombine/sub.ll:1.7	Tue Feb 18 13:43:21 2003
+++ llvm/test/Regression/Transforms/InstCombine/sub.ll	Tue Feb 18 13:55:31 2003
@@ -47,3 +47,15 @@
ret int %B
}

+int %test8(int %A) {
+        %B = mul int 9, %A
+        %C = sub int %B, %A      ; C = 9*A-A == A*8 == A << 3
+        ret int %C
+}
+
+int %test9(int %A) {
+        %B = mul int 3, %A
+        %C = sub int %A, %B      ; C = A-3*A == A*-2
+        ret int %C
+}
+

```