[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/add.ll sub.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 18 13:44:01 PST 2003
Changes in directory llvm/test/Regression/Transforms/InstCombine:
add.ll updated: 1.3 -> 1.4
sub.ll updated: 1.6 -> 1.7
---
Log message:
Modernize testcases
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/InstCombine/add.ll
diff -u llvm/test/Regression/Transforms/InstCombine/add.ll:1.3 llvm/test/Regression/Transforms/InstCombine/add.ll:1.4
--- llvm/test/Regression/Transforms/InstCombine/add.ll:1.3 Fri Aug 2 14:27:57 2002
+++ llvm/test/Regression/Transforms/InstCombine/add.ll Tue Feb 18 13:43:21 2003
@@ -10,33 +10,33 @@
implementation
-int "test1"(int %A)
+int %test1(int %A)
begin
%B = add int %A, 0
ret int %B
end
-int "test2"(int %A)
+int %test2(int %A)
begin
%B = add int %A, 5
%C = add int %B, -5
ret int %C
end
-int "test3"(int %A)
+int %test3(int %A)
begin
%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) {
+int %test4(int %A, int %B) {
%C = sub int 0, %A
%D = add int %B, %C ; D = B + -A = B - A
ret int %D
}
-int "test5"(int %A, int %B) {
+int %test5(int %A, int %B) {
%C = sub int 0, %A
%D = add int %C, %B ; D = -A + B = B - A
ret int %D
Index: llvm/test/Regression/Transforms/InstCombine/sub.ll
diff -u llvm/test/Regression/Transforms/InstCombine/sub.ll:1.6 llvm/test/Regression/Transforms/InstCombine/sub.ll:1.7
--- llvm/test/Regression/Transforms/InstCombine/sub.ll:1.6 Tue Feb 18 13:28:47 2003
+++ llvm/test/Regression/Transforms/InstCombine/sub.ll Tue Feb 18 13:43:21 2003
@@ -8,29 +8,29 @@
implementation
-int "test1"(int %A) {
+int %test1(int %A) {
%B = sub int %A, %A ; ISA constant 0
ret int %B
}
-int "test2"(int %A) {
+int %test2(int %A) {
%B = sub int %A, 0
ret int %B
}
-int "test3"(int %A) {
+int %test3(int %A) {
%B = sub int 0, %A ; B = -A
%C = sub int 0, %B ; C = -B = A
ret int %C
}
-int "test4"(int %A, int %x) {
+int %test4(int %A, int %x) {
%B = sub int 0, %A
%C = sub int %x, %B
ret int %C
}
-int "test5"(int %A, int %Bok, int %Cok) {
+int %test5(int %A, int %Bok, int %Cok) {
%D = sub int %Bok, %Cok
%E = sub int %A, %D
ret int %E
More information about the llvm-commits
mailing list