summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-15 05:58:59 +0000
committerChris Lattner <sabre@nondot.org>2010-12-15 05:58:59 +0000
commit2ff28e4b9e151831890c2086cf2aed2ec9b94eb0 (patch)
tree84dcabc963dbf8c3c94331f6b3e12e8b0ca3ec85 /test/CodeGen
parent1a0fbe2cf438ac2788df669284293789681424e1 (diff)
downloadllvm-2ff28e4b9e151831890c2086cf2aed2ec9b94eb0.tar.gz
llvm-2ff28e4b9e151831890c2086cf2aed2ec9b94eb0.tar.bz2
llvm-2ff28e4b9e151831890c2086cf2aed2ec9b94eb0.tar.xz
merge two tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121847 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/div_const.ll7
-rw-r--r--test/CodeGen/X86/divide-by-constant.ll10
2 files changed, 10 insertions, 7 deletions
diff --git a/test/CodeGen/X86/div_const.ll b/test/CodeGen/X86/div_const.ll
deleted file mode 100644
index f0ada41338..0000000000
--- a/test/CodeGen/X86/div_const.ll
+++ /dev/null
@@ -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
-}
-
diff --git a/test/CodeGen/X86/divide-by-constant.ll b/test/CodeGen/X86/divide-by-constant.ll
index 6b423a167c..d71485577b 100644
--- a/test/CodeGen/X86/divide-by-constant.ll
+++ b/test/CodeGen/X86/divide-by-constant.ll
@@ -39,4 +39,14 @@ define signext i16 @test4(i16 signext %x) nounwind {
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)
+}
+