llvm.org GIT mirror llvm / 2ff28e4
merge two tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121847 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 9 years ago
2 changed file(s) with 10 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
+0
-7
test/CodeGen/X86/div_const.ll less more
None ; RUN: llc < %s -march=x86 | grep 365384439
1
2 define i32 @f9188_mul365384439_shift27(i32 %A) {
3 %tmp1 = udiv i32 %A, 1577682821 ; [#uses=1]
4 ret i32 %tmp1
5 }
6
3838 entry:
3939 %div = sdiv i16 %x, 33 ; [#uses=1]
4040 ret i16 %div
41 ; CHECK: test4:
4142 }
43
44 define i32 @test5(i32 %A) nounwind {
45 %tmp1 = udiv i32 %A, 1577682821 ; [#uses=1]
46 ret i32 %tmp1
47 ; CHECK: test5:
48 ; CHECK: movl $365384439, %eax
49 ; CHECK: mull 4(%esp)
50 }
51