[llvm-commits] [llvm] r121847 - in /llvm/trunk/test/CodeGen/X86: div_const.ll divide-by-constant.ll
Chris Lattner
sabre at nondot.org
Tue Dec 14 21:58:59 PST 2010
Author: lattner
Date: Tue Dec 14 23:58:59 2010
New Revision: 121847
URL: http://llvm.org/viewvc/llvm-project?rev=121847&view=rev
Log:
merge two tests
Removed:
llvm/trunk/test/CodeGen/X86/div_const.ll
Modified:
llvm/trunk/test/CodeGen/X86/divide-by-constant.ll
Removed: llvm/trunk/test/CodeGen/X86/div_const.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/div_const.ll?rev=121846&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/div_const.ll (original)
+++ llvm/trunk/test/CodeGen/X86/div_const.ll (removed)
@@ -1,7 +0,0 @@
-; RUN: llc < %s -march=x86 | grep 365384439
-
-define i32 @f9188_mul365384439_shift27(i32 %A) {
- %tmp1 = udiv i32 %A, 1577682821 ; <i32> [#uses=1]
- ret i32 %tmp1
-}
-
Modified: llvm/trunk/test/CodeGen/X86/divide-by-constant.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/divide-by-constant.ll?rev=121847&r1=121846&r2=121847&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/divide-by-constant.ll (original)
+++ llvm/trunk/test/CodeGen/X86/divide-by-constant.ll Tue Dec 14 23:58:59 2010
@@ -39,4 +39,14 @@
entry:
%div = sdiv i16 %x, 33 ; <i32> [#uses=1]
ret i16 %div
+; CHECK: test4:
}
+
+define i32 @test5(i32 %A) nounwind {
+ %tmp1 = udiv i32 %A, 1577682821 ; <i32> [#uses=1]
+ ret i32 %tmp1
+; CHECK: test5:
+; CHECK: movl $365384439, %eax
+; CHECK: mull 4(%esp)
+}
+
More information about the llvm-commits
mailing list