projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove a test that was ported from the old llvm-gcc frontend test suite.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2008-05-31-Bools.ll
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
}