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:
aa9c1f1
)
I must have missed these when eliminating the cast to bool cannonicalizations
author
Chris Lattner
<sabre@nondot.org>
Wed, 13 Aug 2003 20:17:41 +0000
(20:17 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 13 Aug 2003 20:17:41 +0000
(20:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7829
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/and.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/and.ll
b/test/Transforms/InstCombine/and.ll
index e30d5d35a1823a919bab545f1bb503c624c4d3d7..59fb82383552132686167e13c5b3eac28ab1020b 100644
(file)
--- a/
test/Transforms/InstCombine/and.ll
+++ b/
test/Transforms/InstCombine/and.ll
@@
-49,13
+49,13
@@
ubyte %test8(ubyte %A) { ; AND associates
bool %test9(int %A) {
%B = and int %A, -2147483648 ; Test of sign bit, convert to setle %A, 0
- %C =
cast int %B to bool
+ %C =
setne int %B, 0
ret bool %C
}
bool %test9(uint %A) {
%B = and uint %A, 2147483648 ; Test of sign bit, convert to setle %A, 0
- %C =
cast uint %B to bool
+ %C =
setne uint %B, 0
ret bool %C
}