projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
When the two operands of an icmp are equal, there are five possible predicates
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2007-09-05-EqualGEP.ll
1
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {ret i1 true}
2
; PR1637
3
4
define i1 @f(i8* %arr) {
5
%X = getelementptr i8* %arr, i32 1
6
%Y = getelementptr i8* %arr, i32 1
7
%test = icmp uge i8* %X, %Y
8
ret i1 %test
9
}
10