Add some more testcases for things to get optimized away
authorChris Lattner <sabre@nondot.org>
Mon, 23 Sep 2002 23:39:17 +0000 (23:39 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Sep 2002 23:39:17 +0000 (23:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3896 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/cast.ll

index a809fc4136f89154f62b2ab4eda3019043c1b7ce..ac92b959ef6400660ec0a31ff8b34b1d27b08931 100644 (file)
@@ -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
+}