summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2008-02-13-MulURem.ll
blob: c10128e33f24687b245bc3dcdc467d0b889d00a1 (plain)
1
2
3
4
5
6
7
8
; RUN: opt %s -instcombine -S | grep rem
; PR1933

define i32 @fold(i32 %a) {
  %s = mul i32 %a, 3
  %c = urem i32 %s, 3
  ret i32 %c
}