xref: /llvm-project/llvm/test/CodeGen/ARM/udivmodei5.ll (revision 2090e85fee9b2d2a1ca6402b5f44c7d41d1e353f)
1*2090e85fSMatthias Gehre; RUN: llc -mtriple=arm-eabi < %s | FileCheck %s
2*2090e85fSMatthias Gehre
3*2090e85fSMatthias Gehredefine i65 @udiv65(i65 %a, i65 %b) nounwind {
4*2090e85fSMatthias Gehre; CHECK-LABEL: udiv65:
5*2090e85fSMatthias Gehre; CHECK-NOT:     call
6*2090e85fSMatthias Gehre  %res = udiv i65 %a, %b
7*2090e85fSMatthias Gehre  ret i65 %res
8*2090e85fSMatthias Gehre}
9*2090e85fSMatthias Gehre
10*2090e85fSMatthias Gehredefine i129 @udiv129(i129 %a, i129 %b) nounwind {
11*2090e85fSMatthias Gehre; CHECK-LABEL: udiv129:
12*2090e85fSMatthias Gehre; CHECK-NOT:     call
13*2090e85fSMatthias Gehre  %res = udiv i129 %a, %b
14*2090e85fSMatthias Gehre  ret i129 %res
15*2090e85fSMatthias Gehre}
16*2090e85fSMatthias Gehre
17*2090e85fSMatthias Gehredefine i129 @urem129(i129 %a, i129 %b) nounwind {
18*2090e85fSMatthias Gehre; CHECK-LABEL: urem129:
19*2090e85fSMatthias Gehre; CHECK-NOT:     call
20*2090e85fSMatthias Gehre  %res = urem i129 %a, %b
21*2090e85fSMatthias Gehre  ret i129 %res
22*2090e85fSMatthias Gehre}
23*2090e85fSMatthias Gehre
24*2090e85fSMatthias Gehredefine i129 @sdiv129(i129 %a, i129 %b) nounwind {
25*2090e85fSMatthias Gehre; CHECK-LABEL: sdiv129:
26*2090e85fSMatthias Gehre; CHECK-NOT:     call
27*2090e85fSMatthias Gehre  %res = sdiv i129 %a, %b
28*2090e85fSMatthias Gehre  ret i129 %res
29*2090e85fSMatthias Gehre}
30*2090e85fSMatthias Gehre
31*2090e85fSMatthias Gehredefine i129 @srem129(i129 %a, i129 %b) nounwind {
32*2090e85fSMatthias Gehre; CHECK-LABEL: srem129:
33*2090e85fSMatthias Gehre; CHECK-NOT:     call
34*2090e85fSMatthias Gehre  %res = srem i129 %a, %b
35*2090e85fSMatthias Gehre  ret i129 %res
36*2090e85fSMatthias Gehre}
37*2090e85fSMatthias Gehre
38*2090e85fSMatthias Gehre; Some higher sizes
39*2090e85fSMatthias Gehredefine i257 @sdiv257(i257 %a, i257 %b) nounwind {
40*2090e85fSMatthias Gehre; CHECK-LABEL: sdiv257:
41*2090e85fSMatthias Gehre; CHECK-NOT:     call
42*2090e85fSMatthias Gehre  %res = sdiv i257 %a, %b
43*2090e85fSMatthias Gehre  ret i257 %res
44*2090e85fSMatthias Gehre}
45