e19d552987
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
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
|
|
}
|