1 ; RUN: llc -march=mips < %s | FileCheck %s
4 define i32 @sdiv1(i32 %a0, i32 %a1) nounwind readnone {
6 %div = sdiv i32 %a0, %a1
11 define i32 @srem1(i32 %a0, i32 %a1) nounwind readnone {
13 %rem = srem i32 %a0, %a1
18 define i32 @udiv1(i32 %a0, i32 %a1) nounwind readnone {
20 %div = udiv i32 %a0, %a1
25 define i32 @urem1(i32 %a0, i32 %a1) nounwind readnone {
27 %rem = urem i32 %a0, %a1
32 define i32 @sdivrem1(i32 %a0, i32 %a1, i32* nocapture %r) nounwind {
34 %rem = srem i32 %a0, %a1
35 store i32 %rem, i32* %r, align 4, !tbaa !0
36 %div = sdiv i32 %a0, %a1
41 define i32 @udivrem1(i32 %a0, i32 %a1, i32* nocapture %r) nounwind {
43 %rem = urem i32 %a0, %a1
44 store i32 %rem, i32* %r, align 4, !tbaa !0
45 %div = udiv i32 %a0, %a1
49 !0 = metadata !{metadata !"int", metadata !1}
50 !1 = metadata !{metadata !"omnipotent char", metadata !2}
51 !2 = metadata !{metadata !"Simple C/C++ TBAA", null}