summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/divide-by-constant.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/divide-by-constant.ll')
-rw-r--r--test/CodeGen/X86/divide-by-constant.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/divide-by-constant.ll b/test/CodeGen/X86/divide-by-constant.ll
index fe335b9369..08e3272a37 100644
--- a/test/CodeGen/X86/divide-by-constant.ll
+++ b/test/CodeGen/X86/divide-by-constant.ll
@@ -60,3 +60,14 @@ entry:
; CHECK: shrl $31, %ecx
; CHECK: sarl $18, %eax
}
+
+define i32 @test7(i32 %x) nounwind {
+ %div = udiv i32 %x, 28
+ ret i32 %div
+; CHECK: test7:
+; CHECK: shrl $2
+; CHECK: movl $613566757
+; CHECK: mull
+; CHECK-NOT: shrl
+; CHECK: ret
+}