1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
5 define void @sdiv_i32() {entry: ret void}
6 define void @srem_i32() {entry: ret void}
7 define void @udiv_i32() {entry: ret void}
8 define void @urem_i32() {entry: ret void}
15 tracksRegLiveness: true
20 ; MIPS32-LABEL: name: sdiv_i32
21 ; MIPS32: liveins: $a0, $a1
22 ; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
23 ; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
24 ; MIPS32: [[SDIV:%[0-9]+]]:gprb(s32) = G_SDIV [[COPY1]], [[COPY]]
25 ; MIPS32: $v0 = COPY [[SDIV]](s32)
26 ; MIPS32: RetRA implicit $v0
29 %2:_(s32) = G_SDIV %1, %0
38 tracksRegLiveness: true
43 ; MIPS32-LABEL: name: srem_i32
44 ; MIPS32: liveins: $a0, $a1
45 ; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
46 ; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
47 ; MIPS32: [[SREM:%[0-9]+]]:gprb(s32) = G_SREM [[COPY1]], [[COPY]]
48 ; MIPS32: $v0 = COPY [[SREM]](s32)
49 ; MIPS32: RetRA implicit $v0
52 %2:_(s32) = G_SREM %1, %0
61 tracksRegLiveness: true
66 ; MIPS32-LABEL: name: udiv_i32
67 ; MIPS32: liveins: $a0, $a1
68 ; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
69 ; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
70 ; MIPS32: [[UDIV:%[0-9]+]]:gprb(s32) = G_UDIV [[COPY1]], [[COPY]]
71 ; MIPS32: $v0 = COPY [[UDIV]](s32)
72 ; MIPS32: RetRA implicit $v0
75 %2:_(s32) = G_UDIV %1, %0
84 tracksRegLiveness: true
89 ; MIPS32-LABEL: name: urem_i32
90 ; MIPS32: liveins: $a0, $a1
91 ; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
92 ; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
93 ; MIPS32: [[UREM:%[0-9]+]]:gprb(s32) = G_UREM [[COPY1]], [[COPY]]
94 ; MIPS32: $v0 = COPY [[UREM]](s32)
95 ; MIPS32: RetRA implicit $v0
98 %2:_(s32) = G_UREM %1, %0