YouCompleteMe/cpp/llvm/test/Transforms/InstCombine/2008-02-13-MulURem.ll
2012-07-05 17:51:06 -07:00

9 lines
138 B
LLVM

; 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
}