mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 10:04:33 +00:00
9fd438fc00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189529 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
156 B
LLVM
11 lines
156 B
LLVM
; RUN: opt < %s -instcombine -S | FileCheck %s
|
|
; PR1933
|
|
|
|
; CHECK: rem
|
|
|
|
define i32 @fold(i32 %a) {
|
|
%s = mul i32 %a, 3
|
|
%c = urem i32 %s, 3
|
|
ret i32 %c
|
|
}
|