repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git]
/
test
/
Transforms
/
InstCombine
/
2008-07-10-ICmpBinOp.ll
blob
76e30399a66680fa259b10d398166d7e72582a85
1
; RUN: opt < %s -instcombine -S | not grep add
2
; RUN: opt < %s -instcombine -S | not grep mul
3
; PR2330
4
5
define i1 @f(i32 %x, i32 %y) nounwind {
6
entry:
7
%A = add i32 %x, 5
8
%B = add i32 %y, 5
9
%C = icmp eq i32 %A, %B
10
ret i1 %C
11
}
12
13
define i1 @g(i32 %x, i32 %y) nounwind {
14
entry:
15
%A = mul i32 %x, 5
16
%B = mul i32 %y, 5
17
%C = icmp eq i32 %A, %B
18
ret i1 %C
19
}