1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-02 00:42:52 +01:00
llvm-mirror/test/Transforms/InstCombine/2008-02-13-MulURem.ll
Nick Lewycky c6edcb8904 Commit the testcase too.
llvm-svn: 47988
2008-03-06 06:50:03 +00:00

9 lines
156 B
LLVM

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