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:
8917d36
)
Add another case, which an implementation of test6 must be sure to handle
author
Chris Lattner
<sabre@nondot.org>
Mon, 3 Nov 2003 05:08:53 +0000
(
05:08
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 3 Nov 2003 05:08:53 +0000
(
05:08
+0000)
correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9672
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/cast-set.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/cast-set.ll
b/test/Transforms/InstCombine/cast-set.ll
index b87c22a49e0b6781d537680bce6fc821b51e5b43..1e4b537c25781d7ae6865e92ca4977708d8cdccd 100644
(file)
--- a/
test/Transforms/InstCombine/cast-set.ll
+++ b/
test/Transforms/InstCombine/cast-set.ll
@@
-48,6
+48,12
@@
bool %test6(bool %A) {
ret bool %C
}
+bool %test6a(bool %A) {
+ %B = cast bool %A to int
+ %C = setne int %B, -1 ; Always true!
+ ret bool %C
+}
+
bool %test7(sbyte* %A) {
%B = cast sbyte* %A to int*
%C = seteq int* %B, null