projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Reapply r219832 - InstCombine: Narrow switch instructions using known bits.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
urem.ll
1
; RUN: opt < %s -instcombine -S | grep urem
2
3
define i64 @rem_unsigned(i64 %x1, i64 %y2) {
4
%r = udiv i64 %x1, %y2
5
%r7 = mul i64 %r, %y2
6
%r8 = sub i64 %x1, %r7
7
ret i64 %r8
8
}