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
/
srem-simplify-bug.ll
blob
3458714b8daec94a98224a893af2b7cb6422a067
1
; RUN: opt < %s -instcombine -S | grep "ret i1 false"
2
; PR2276
3
4
define i1 @f(i32 %x) {
5
%A = or i32 %x, 1
6
%B = srem i32 %A, 1
7
%C = icmp ne i32 %B, 0
8
ret i1 %C
9
}