aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/cast.ll11
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
+}