From e14e50d76b348117d29f511cf92f95b1e0148dbd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Feb 2003 19:43:21 +0000 Subject: [PATCH] Modernize testcases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5589 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/add.ll | 10 +++++----- test/Transforms/InstCombine/sub.ll | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index 8247d055055..71fa7e5c035 100644 --- a/test/Transforms/InstCombine/add.ll +++ b/test/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/test/Transforms/InstCombine/sub.ll b/test/Transforms/InstCombine/sub.ll index f807d7e042f..8b164cb51e5 100644 --- a/test/Transforms/InstCombine/sub.ll +++ b/test/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 -- 2.40.0