diff options
Diffstat (limited to 'test/Transforms/InstCombine/2008-02-13-MulURem.ll')
-rw-r--r-- | test/Transforms/InstCombine/2008-02-13-MulURem.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2008-02-13-MulURem.ll b/test/Transforms/InstCombine/2008-02-13-MulURem.ll new file mode 100644 index 0000000..a88c510 --- /dev/null +++ b/test/Transforms/InstCombine/2008-02-13-MulURem.ll @@ -0,0 +1,8 @@ +; 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 +} |