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
When removing a function from the function set and adding it to deferred, we
[llvm.git]
/
test
/
Transforms
/
InstCombine
/
2008-05-31-Bools.ll
blob
a0fe47a6257b71d66ca59d806f08a5bf45352ccf
1
; RUN: opt < %s -instcombine -S > %t
2
; RUN: grep {xor} %t
3
; RUN: grep {and} %t
4
; RUN: not grep {div} %t
5
6
define i1 @foo1(i1 %a, i1 %b) {
7
%A = sub i1 %a, %b
8
ret i1 %A
9
}
10
11
define i1 @foo2(i1 %a, i1 %b) {
12
%A = mul i1 %a, %b
13
ret i1 %A
14
}
15
16
define i1 @foo3(i1 %a, i1 %b) {
17
%A = udiv i1 %a, %b
18
ret i1 %A
19
}
20
21
define i1 @foo4(i1 %a, i1 %b) {
22
%A = sdiv i1 %a, %b
23
ret i1 %A
24
}