projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd763f4
)
More testcases for recent instcombine patches
author
Chris Lattner
<sabre@nondot.org>
Wed, 29 Sep 2004 03:18:20 +0000
(
03:18
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 29 Sep 2004 03:18:20 +0000
(
03:18
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16569
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/cast.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/cast.ll
b/test/Transforms/InstCombine/cast.ll
index 696d5c64baa1c0bed7b4ce232735f2d018524e37..f0b99568f48e13535f2aed2a94fb523383302a58 100644
(file)
--- 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
+}