From 2ae37b02299c795e60ee762297cd2a54852a7987 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Feb 2003 19:43:21 +0000 Subject: [PATCH] Modernize testcases llvm-svn: 5589 --- llvm/test/Regression/Transforms/InstCombine/add.ll | 10 +++++----- llvm/test/Regression/Transforms/InstCombine/sub.ll | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/llvm/test/Regression/Transforms/InstCombine/add.ll b/llvm/test/Regression/Transforms/InstCombine/add.ll index 8247d055055b..71fa7e5c0355 100644 --- a/llvm/test/Regression/Transforms/InstCombine/add.ll +++ b/llvm/test/Regression/Transforms/InstCombine/add.ll @@ -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 diff --git a/llvm/test/Regression/Transforms/InstCombine/sub.ll b/llvm/test/Regression/Transforms/InstCombine/sub.ll index f807d7e042ff..8b164cb51e5a 100644 --- a/llvm/test/Regression/Transforms/InstCombine/sub.ll +++ b/llvm/test/Regression/Transforms/InstCombine/sub.ll @@ -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