diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-23 23:39:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-23 23:39:17 +0000 |
commit | a30b70f381e2a7342cdfdee05fba25c1b77a56eb (patch) | |
tree | f30347cc4bd915051de239d22069ac2e4cdae980 | |
parent | e4314ed3154f168cc9324e2e213c2733c2b71761 (diff) |
Add some more testcases for things to get optimized away
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3896 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/cast.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index a809fc4136..ac92b959ef 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -57,3 +57,14 @@ long %test8(sbyte %A) { ret long %res } +short %test9(short %A) { + %c1 = cast short %A to int + %c2 = cast int %c1 to short + ret short %c2 +} + +short %test10(short %A) { + %c1 = cast short %A to uint + %c2 = cast uint %c1 to short + ret short %c2 +} |