diff options
author | Chris Lattner <sabre@nondot.org> | 2003-03-10 19:44:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-03-10 19:44:01 +0000 |
commit | 2bd37807d02bc61df13a6063feea79d131982892 (patch) | |
tree | e9cfa70f32c2cc656db519bf4fc3ff6be9043c5d | |
parent | 28ba1aad99ceb61e06112caa51bd228a339be403 (diff) |
Modernize testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5732 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/mul.ll | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/Transforms/InstCombine/mul.ll b/test/Transforms/InstCombine/mul.ll index 3f171f4522..a0a2808106 100644 --- a/test/Transforms/InstCombine/mul.ll +++ b/test/Transforms/InstCombine/mul.ll @@ -8,23 +8,20 @@ implementation -int "test1"(int %A) -begin +int %test1(int %A) { %B = mul int %A, 1 ret int %B -end +} -int "test2"(int %A) -begin +int %test2(int %A) { %B = mul int %A, 2 ; Should convert to an add instruction ret int %B -end +} -int "test3"(int %A) -begin +int %test3(int %A) { %B = mul int %A, 0 ; This should disappear entirely ret int %B -end +} double %test4(double %A) { %B = mul double 1.0, %A ; This is safe for FP |