Commit the testcase too.
authorNick Lewycky <nicholas@mxc.ca>
Thu, 6 Mar 2008 06:50:03 +0000 (06:50 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 6 Mar 2008 06:50:03 +0000 (06:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47988 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2008-02-13-MulURem.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2008-02-13-MulURem.ll b/test/Transforms/InstCombine/2008-02-13-MulURem.ll
new file mode 100644 (file)
index 0000000..6697383
--- /dev/null
@@ -0,0 +1,8 @@
+; 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
+}