llvm-6502/test/Transforms/InstCombine/2008-02-13-MulURem.ll

9 lines
156 B
LLVM
Raw Normal View History

; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep rem
; PR1933
define i32 @fold(i32 %a) {
%s = mul i32 %a, 3
%c = urem i32 %s, 3
ret i32 %c
}