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:
55afc33
)
New testcases
author
Chris Lattner
<sabre@nondot.org>
Sun, 1 Jun 2003 03:34:53 +0000
(
03:34
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 1 Jun 2003 03:34:53 +0000
(
03:34
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6505
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/set.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/set.ll
b/test/Transforms/InstCombine/set.ll
index 38a490d48e25d881ab08567944f86ebdca0a03ce..1e31e0df2e07956ba322fb40658c54c86714896f 100644
(file)
--- a/
test/Transforms/InstCombine/set.ll
+++ b/
test/Transforms/InstCombine/set.ll
@@
-78,3
+78,14
@@
bool %test14(bool %A, bool %B) {
ret bool %C
}
+; These instructions can be turned into cast-to-bool
+bool %test15(sbyte %A, short %A, int %A, long %A) {
+ %B1 = setne sbyte %A, 0
+ %B2 = setne short %A, 0
+ %B3 = setne int %A, 0
+ %B4 = setne long %A, 0
+ %C1 = or bool %B1, %B2
+ %C2 = or bool %B3, %B4
+ %D = or bool %C1, %C2
+ ret bool %D
+}