summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/cast.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-09-29 03:18:20 +0000
committerChris Lattner <sabre@nondot.org>2004-09-29 03:18:20 +0000
commitb5ddea5d24a4346e2c7251d0482622bce83accb8 (patch)
tree19cd3d868d92677c4ab7acd5535c5c03c6f1041c /test/Transforms/InstCombine/cast.ll
parentdd763f401e5cdeaab7d7b6278694ba5bb6cbd308 (diff)
downloadllvm-b5ddea5d24a4346e2c7251d0482622bce83accb8.tar.gz
llvm-b5ddea5d24a4346e2c7251d0482622bce83accb8.tar.bz2
llvm-b5ddea5d24a4346e2c7251d0482622bce83accb8.tar.xz
More testcases for recent instcombine patches
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/cast.ll')
-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 696d5c64ba..f0b99568f4 100644
--- a/test/Transforms/InstCombine/cast.ll
+++ b/test/Transforms/InstCombine/cast.ll
@@ -117,3 +117,14 @@ short %test18(sbyte %tmp3) {
ret short %t86
}
+bool %test19(int %X) {
+ %Y = cast int %X to long
+ %Z = setlt long %Y, 12345
+ ret bool %Z
+}
+
+bool %test20(bool %B) {
+ %C = cast bool %B to int
+ %D = setlt int %C, -1
+ ret bool %D ;; false
+}