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 3--- | 4 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} 9 10... 11--- 12name: sdiv_i32 13alignment: 4 14legalized: true 15tracksRegLiveness: true 16body: | 17 bb.1.entry: 18 liveins: $a0, $a1 19 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 27 %0:_(s32) = COPY $a0 28 %1:_(s32) = COPY $a1 29 %2:_(s32) = G_SDIV %1, %0 30 $v0 = COPY %2(s32) 31 RetRA implicit $v0 32 33... 34--- 35name: srem_i32 36alignment: 4 37legalized: true 38tracksRegLiveness: true 39body: | 40 bb.1.entry: 41 liveins: $a0, $a1 42 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 50 %0:_(s32) = COPY $a0 51 %1:_(s32) = COPY $a1 52 %2:_(s32) = G_SREM %1, %0 53 $v0 = COPY %2(s32) 54 RetRA implicit $v0 55 56... 57--- 58name: udiv_i32 59alignment: 4 60legalized: true 61tracksRegLiveness: true 62body: | 63 bb.1.entry: 64 liveins: $a0, $a1 65 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 73 %0:_(s32) = COPY $a0 74 %1:_(s32) = COPY $a1 75 %2:_(s32) = G_UDIV %1, %0 76 $v0 = COPY %2(s32) 77 RetRA implicit $v0 78 79... 80--- 81name: urem_i32 82alignment: 4 83legalized: true 84tracksRegLiveness: true 85body: | 86 bb.1.entry: 87 liveins: $a0, $a1 88 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 96 %0:_(s32) = COPY $a0 97 %1:_(s32) = COPY $a1 98 %2:_(s32) = G_UREM %1, %0 99 $v0 = COPY %2(s32) 100 RetRA implicit $v0 101 102... 103