[llvm-commits] [llvm] r47988 - /llvm/trunk/test/Transforms/InstCombine/2008-02-13-MulURem.ll
Nick Lewycky
nicholas at mxc.ca
Wed Mar 5 22:50:04 PST 2008
Author: nicholas
Date: Thu Mar 6 00:50:03 2008
New Revision: 47988
URL: http://llvm.org/viewvc/llvm-project?rev=47988&view=rev
Log:
Commit the testcase too.
Added:
llvm/trunk/test/Transforms/InstCombine/2008-02-13-MulURem.ll
Added: llvm/trunk/test/Transforms/InstCombine/2008-02-13-MulURem.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/2008-02-13-MulURem.ll?rev=47988&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/2008-02-13-MulURem.ll (added)
+++ llvm/trunk/test/Transforms/InstCombine/2008-02-13-MulURem.ll Thu Mar 6 00:50:03 2008
@@ -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
+}
More information about the llvm-commits
mailing list