repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ARM] Better OR's for MVE compares
[llvm-core.git]
/
test
/
Transforms
/
InstCombine
/
2008-05-31-Bools.ll
blob
7c33f2dd05ee4341fdd98f02426f220db65883ac
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
}