repo.or.cz
/
llvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix a globalopt crash on two Adobe-C++ testcases that the recent
[llvm.git]
/
test
/
Transforms
/
InstCombine
/
2007-11-22-IcmpCrash.ll
blob
f71b99ce1a4b8ca4fb8a836768f1cc7f9125b00e
1
; RUN: opt < %s -instcombine -disable-output
2
; PR1817
3
4
define i1 @test1(i32 %X) {
5
%A = icmp slt i32 %X, 10
6
%B = icmp ult i32 %X, 10
7
%C = and i1 %A, %B
8
ret i1 %C
9
}
10
11
define i1 @test2(i32 %X) {
12
%A = icmp slt i32 %X, 10
13
%B = icmp ult i32 %X, 10
14
%C = or i1 %A, %B
15
ret i1 %C
16
}