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
/
2011-03-08-SRemMinusOneBadOpt.ll
blob
6a3e3e40e6d4481a8f228d05e8c9e2340a6b3b76
1
; RUN: opt < %s -instcombine -S | FileCheck %s
2
; PR9346
3
4
define i32 @test(i64 %x) nounwind {
5
; CHECK: ret i32 0
6
entry:
7
%or = or i64 %x, 4294967294
8
%conv = trunc i64 %or to i32
9
%rem.i = srem i32 %conv, -1
10
ret i32 %rem.i
11
}
12