Add a new testcase for an eliminable cast
authorChris Lattner <sabre@nondot.org>
Thu, 19 Jan 2006 07:39:20 +0000 (07:39 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 19 Jan 2006 07:39:20 +0000 (07:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25451 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/cast.ll

index fb0b899ef11cbd7ab5a8021509231943dbcc5f73..53bc87ff6aa50a3b091d71ceacc765c77c18829c 100644 (file)
@@ -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
+}