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-02-13-MulURem.ll
blob
d85ef97553abab3b804a3bc4f786e66ec3be7311
1
; RUN: opt < %s -instcombine -S | FileCheck %s
2
; PR1933
3
4
; CHECK: rem
5
6
define i32 @fold(i32 %a) {
7
%s = mul i32 %a, 3
8
%c = urem i32 %s, 3
9
ret i32 %c
10
}