From ef453e280023e7dc7a2674d821d2e5050237a26f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 23 Sep 2002 23:39:17 +0000 Subject: [PATCH] Add some more testcases for things to get optimized away llvm-svn: 3896 --- llvm/test/Regression/Transforms/InstCombine/cast.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/llvm/test/Regression/Transforms/InstCombine/cast.ll b/llvm/test/Regression/Transforms/InstCombine/cast.ll index a809fc4136f8..ac92b959ef64 100644 --- a/llvm/test/Regression/Transforms/InstCombine/cast.ll +++ b/llvm/test/Regression/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 +}