repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstCombine
/
2008-11-01-SRemDemandedBits.ll
blob
679cc5f73d77f9f179546f3c2a317141586c3361
1
; RUN: opt < %s -instcombine -S | grep "ret i1 true"
2
; PR2993
3
4
define i1 @foo(i32 %x) {
5
%1 = srem i32 %x, -1
6
%2 = icmp eq i32 %1, 0
7
ret i1 %2
8
}