summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/cast-set.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-03 03:51:26 +0000
committerChris Lattner <sabre@nondot.org>2003-11-03 03:51:26 +0000
commita5c5666d485a48eacc095bd8c05efc8615b0cdce (patch)
tree9c7cfb91cc7d97be1cc5480a7f2dfe34400cbfa9 /test/Transforms/InstCombine/cast-set.ll
parent8ee9204309edafc981db6cf71f282e071034b1a4 (diff)
downloadllvm-a5c5666d485a48eacc095bd8c05efc8615b0cdce.tar.gz
llvm-a5c5666d485a48eacc095bd8c05efc8615b0cdce.tar.bz2
llvm-a5c5666d485a48eacc095bd8c05efc8615b0cdce.tar.xz
Add another case, which occurs in em3d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/cast-set.ll')
-rw-r--r--test/Transforms/InstCombine/cast-set.ll7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/cast-set.ll b/test/Transforms/InstCombine/cast-set.ll
index 721faefc10..6ee4cd19e4 100644
--- a/test/Transforms/InstCombine/cast-set.ll
+++ b/test/Transforms/InstCombine/cast-set.ll
@@ -41,4 +41,9 @@ short %test5(short %A) {
%D = cast uint %C to short
ret short %D
}
-
+
+bool %test6(bool %A) {
+ %B = cast bool %A to int
+ %C = setne int %B, 0
+ ret bool %C
+}