summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/cast.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll
index a460661506..696d5c64ba 100644
--- a/test/Transforms/InstCombine/cast.ll
+++ b/test/Transforms/InstCombine/cast.ll
@@ -103,3 +103,17 @@ bool %test16(int* %P) {
%c = cast int* %P to bool ;; setne P, null
ret bool %c
}
+
+
+short %test17(bool %tmp3) {
+ %c = cast bool %tmp3 to int
+ %t86 = cast int %c to short
+ ret short %t86
+}
+
+short %test18(sbyte %tmp3) {
+ %c = cast sbyte %tmp3 to int
+ %t86 = cast int %c to short
+ ret short %t86
+}
+