diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-19 07:39:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-19 07:39:20 +0000 |
commit | 6b8800d6a6d3864a76ff9880e6c7f0d83d24ffc7 (patch) | |
tree | a723b4d5679494d81e9cc9901cbe5d07c70f1a7d /test/Transforms/InstCombine/cast.ll | |
parent | 46030a6b0ae6aabea0ab5b0a458fa121eeecaaa3 (diff) | |
download | llvm-6b8800d6a6d3864a76ff9880e6c7f0d83d24ffc7.tar.gz llvm-6b8800d6a6d3864a76ff9880e6c7f0d83d24ffc7.tar.bz2 llvm-6b8800d6a6d3864a76ff9880e6c7f0d83d24ffc7.tar.xz |
Add a new testcase for an eliminable cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/cast.ll')
-rw-r--r-- | test/Transforms/InstCombine/cast.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index fb0b899ef1..53bc87ff6a 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -161,3 +161,8 @@ void %test25(int** %P) { ret void } +int %test26(float %F) { + %c = cast float %F to double ;; no need to cast from float->double. + %D = cast double %c to int + ret int %D +} |