| # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py |
| # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32 |
| --- | |
| |
| define void @ne_i32() {entry: ret void} |
| define void @eq_ptr() {entry: ret void} |
| define void @ult_i8() {entry: ret void} |
| define void @slt_i16() {entry: ret void} |
| define void @eq_i64() {entry: ret void} |
| define void @ne_i64() {entry: ret void} |
| define void @sgt_i64() {entry: ret void} |
| define void @sge_i64() {entry: ret void} |
| define void @slt_i64() {entry: ret void} |
| define void @sle_i64() {entry: ret void} |
| define void @ugt_i64() {entry: ret void} |
| define void @uge_i64() {entry: ret void} |
| define void @ult_i64() {entry: ret void} |
| define void @ule_i64() {entry: ret void} |
| |
| ... |
| --- |
| name: ne_i32 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1 |
| |
| ; MIPS32-LABEL: name: ne_i32 |
| ; MIPS32: liveins: $a0, $a1 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ne), [[COPY]](s32), [[COPY1]] |
| ; MIPS32-NEXT: $v0 = COPY [[ICMP]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %0:_(s32) = COPY $a0 |
| %1:_(s32) = COPY $a1 |
| %2:_(s1) = G_ICMP intpred(ne), %0(s32), %1 |
| %3:_(s32) = G_ANYEXT %2(s1) |
| $v0 = COPY %3(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: eq_ptr |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1 |
| |
| ; MIPS32-LABEL: name: eq_ptr |
| ; MIPS32: liveins: $a0, $a1 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(p0) = COPY $a1 |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[COPY]](p0), [[COPY1]] |
| ; MIPS32-NEXT: $v0 = COPY [[ICMP]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %0:_(p0) = COPY $a0 |
| %1:_(p0) = COPY $a1 |
| %2:_(s1) = G_ICMP intpred(eq), %0(p0), %1 |
| %3:_(s32) = G_ANYEXT %2(s1) |
| $v0 = COPY %3(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: ult_i8 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1 |
| |
| ; MIPS32-LABEL: name: ult_i8 |
| ; MIPS32: liveins: $a0, $a1 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 255 |
| ; MIPS32-NEXT: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY]], [[C]] |
| ; MIPS32-NEXT: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C]] |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ult), [[AND]](s32), [[AND1]] |
| ; MIPS32-NEXT: $v0 = COPY [[ICMP]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %0:_(s8) = G_TRUNC %2(s32) |
| %3:_(s32) = COPY $a1 |
| %1:_(s8) = G_TRUNC %3(s32) |
| %4:_(s1) = G_ICMP intpred(ult), %0(s8), %1 |
| %5:_(s32) = G_ANYEXT %4(s1) |
| $v0 = COPY %5(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: slt_i16 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1 |
| |
| ; MIPS32-LABEL: name: slt_i16 |
| ; MIPS32: liveins: $a0, $a1 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 16 |
| ; MIPS32-NEXT: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[COPY]], [[C]](s32) |
| ; MIPS32-NEXT: [[ASHR:%[0-9]+]]:_(s32) = G_ASHR [[SHL]], [[C]](s32) |
| ; MIPS32-NEXT: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[COPY1]], [[C]](s32) |
| ; MIPS32-NEXT: [[ASHR1:%[0-9]+]]:_(s32) = G_ASHR [[SHL1]], [[C]](s32) |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(slt), [[ASHR]](s32), [[ASHR1]] |
| ; MIPS32-NEXT: $v0 = COPY [[ICMP]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %0:_(s16) = G_TRUNC %2(s32) |
| %3:_(s32) = COPY $a1 |
| %1:_(s16) = G_TRUNC %3(s32) |
| %4:_(s1) = G_ICMP intpred(slt), %0(s16), %1 |
| %5:_(s32) = G_ANYEXT %4(s1) |
| $v0 = COPY %5(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: eq_i64 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1, $a2, $a3 |
| |
| ; MIPS32-LABEL: name: eq_i64 |
| ; MIPS32: liveins: $a0, $a1, $a2, $a3 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2 |
| ; MIPS32-NEXT: [[COPY3:%[0-9]+]]:_(s32) = COPY $a3 |
| ; MIPS32-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0 |
| ; MIPS32-NEXT: [[XOR:%[0-9]+]]:_(s32) = G_XOR [[COPY]], [[COPY2]] |
| ; MIPS32-NEXT: [[XOR1:%[0-9]+]]:_(s32) = G_XOR [[COPY1]], [[COPY3]] |
| ; MIPS32-NEXT: [[OR:%[0-9]+]]:_(s32) = G_OR [[XOR]], [[XOR1]] |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[OR]](s32), [[C]] |
| ; MIPS32-NEXT: $v0 = COPY [[ICMP]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %3:_(s32) = COPY $a1 |
| %0:_(s64) = G_MERGE_VALUES %2(s32), %3(s32) |
| %4:_(s32) = COPY $a2 |
| %5:_(s32) = COPY $a3 |
| %1:_(s64) = G_MERGE_VALUES %4(s32), %5(s32) |
| %6:_(s1) = G_ICMP intpred(eq), %0(s64), %1 |
| %7:_(s32) = G_ANYEXT %6(s1) |
| $v0 = COPY %7(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: ne_i64 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1, $a2, $a3 |
| |
| ; MIPS32-LABEL: name: ne_i64 |
| ; MIPS32: liveins: $a0, $a1, $a2, $a3 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2 |
| ; MIPS32-NEXT: [[COPY3:%[0-9]+]]:_(s32) = COPY $a3 |
| ; MIPS32-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0 |
| ; MIPS32-NEXT: [[XOR:%[0-9]+]]:_(s32) = G_XOR [[COPY]], [[COPY2]] |
| ; MIPS32-NEXT: [[XOR1:%[0-9]+]]:_(s32) = G_XOR [[COPY1]], [[COPY3]] |
| ; MIPS32-NEXT: [[OR:%[0-9]+]]:_(s32) = G_OR [[XOR]], [[XOR1]] |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ne), [[OR]](s32), [[C]] |
| ; MIPS32-NEXT: $v0 = COPY [[ICMP]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %3:_(s32) = COPY $a1 |
| %0:_(s64) = G_MERGE_VALUES %2(s32), %3(s32) |
| %4:_(s32) = COPY $a2 |
| %5:_(s32) = COPY $a3 |
| %1:_(s64) = G_MERGE_VALUES %4(s32), %5(s32) |
| %6:_(s1) = G_ICMP intpred(ne), %0(s64), %1 |
| %7:_(s32) = G_ANYEXT %6(s1) |
| $v0 = COPY %7(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: sgt_i64 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1, $a2, $a3 |
| |
| ; MIPS32-LABEL: name: sgt_i64 |
| ; MIPS32: liveins: $a0, $a1, $a2, $a3 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2 |
| ; MIPS32-NEXT: [[COPY3:%[0-9]+]]:_(s32) = COPY $a3 |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(sgt), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP1:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP2:%[0-9]+]]:_(s32) = G_ICMP intpred(ugt), [[COPY]](s32), [[COPY2]] |
| ; MIPS32-NEXT: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP1]](s32), [[ICMP2]], [[ICMP]] |
| ; MIPS32-NEXT: $v0 = COPY [[SELECT]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %3:_(s32) = COPY $a1 |
| %0:_(s64) = G_MERGE_VALUES %2(s32), %3(s32) |
| %4:_(s32) = COPY $a2 |
| %5:_(s32) = COPY $a3 |
| %1:_(s64) = G_MERGE_VALUES %4(s32), %5(s32) |
| %6:_(s1) = G_ICMP intpred(sgt), %0(s64), %1 |
| %7:_(s32) = G_ANYEXT %6(s1) |
| $v0 = COPY %7(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: sge_i64 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1, $a2, $a3 |
| |
| ; MIPS32-LABEL: name: sge_i64 |
| ; MIPS32: liveins: $a0, $a1, $a2, $a3 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2 |
| ; MIPS32-NEXT: [[COPY3:%[0-9]+]]:_(s32) = COPY $a3 |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(sge), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP1:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP2:%[0-9]+]]:_(s32) = G_ICMP intpred(uge), [[COPY]](s32), [[COPY2]] |
| ; MIPS32-NEXT: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP1]](s32), [[ICMP2]], [[ICMP]] |
| ; MIPS32-NEXT: $v0 = COPY [[SELECT]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %3:_(s32) = COPY $a1 |
| %0:_(s64) = G_MERGE_VALUES %2(s32), %3(s32) |
| %4:_(s32) = COPY $a2 |
| %5:_(s32) = COPY $a3 |
| %1:_(s64) = G_MERGE_VALUES %4(s32), %5(s32) |
| %6:_(s1) = G_ICMP intpred(sge), %0(s64), %1 |
| %7:_(s32) = G_ANYEXT %6(s1) |
| $v0 = COPY %7(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: slt_i64 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1, $a2, $a3 |
| |
| ; MIPS32-LABEL: name: slt_i64 |
| ; MIPS32: liveins: $a0, $a1, $a2, $a3 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2 |
| ; MIPS32-NEXT: [[COPY3:%[0-9]+]]:_(s32) = COPY $a3 |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(slt), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP1:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP2:%[0-9]+]]:_(s32) = G_ICMP intpred(ult), [[COPY]](s32), [[COPY2]] |
| ; MIPS32-NEXT: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP1]](s32), [[ICMP2]], [[ICMP]] |
| ; MIPS32-NEXT: $v0 = COPY [[SELECT]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %3:_(s32) = COPY $a1 |
| %0:_(s64) = G_MERGE_VALUES %2(s32), %3(s32) |
| %4:_(s32) = COPY $a2 |
| %5:_(s32) = COPY $a3 |
| %1:_(s64) = G_MERGE_VALUES %4(s32), %5(s32) |
| %6:_(s1) = G_ICMP intpred(slt), %0(s64), %1 |
| %7:_(s32) = G_ANYEXT %6(s1) |
| $v0 = COPY %7(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: sle_i64 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1, $a2, $a3 |
| |
| ; MIPS32-LABEL: name: sle_i64 |
| ; MIPS32: liveins: $a0, $a1, $a2, $a3 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2 |
| ; MIPS32-NEXT: [[COPY3:%[0-9]+]]:_(s32) = COPY $a3 |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(sle), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP1:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP2:%[0-9]+]]:_(s32) = G_ICMP intpred(ule), [[COPY]](s32), [[COPY2]] |
| ; MIPS32-NEXT: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP1]](s32), [[ICMP2]], [[ICMP]] |
| ; MIPS32-NEXT: $v0 = COPY [[SELECT]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %3:_(s32) = COPY $a1 |
| %0:_(s64) = G_MERGE_VALUES %2(s32), %3(s32) |
| %4:_(s32) = COPY $a2 |
| %5:_(s32) = COPY $a3 |
| %1:_(s64) = G_MERGE_VALUES %4(s32), %5(s32) |
| %6:_(s1) = G_ICMP intpred(sle), %0(s64), %1 |
| %7:_(s32) = G_ANYEXT %6(s1) |
| $v0 = COPY %7(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: ugt_i64 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1, $a2, $a3 |
| |
| ; MIPS32-LABEL: name: ugt_i64 |
| ; MIPS32: liveins: $a0, $a1, $a2, $a3 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2 |
| ; MIPS32-NEXT: [[COPY3:%[0-9]+]]:_(s32) = COPY $a3 |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ugt), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP1:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP2:%[0-9]+]]:_(s32) = G_ICMP intpred(ugt), [[COPY]](s32), [[COPY2]] |
| ; MIPS32-NEXT: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP1]](s32), [[ICMP2]], [[ICMP]] |
| ; MIPS32-NEXT: $v0 = COPY [[SELECT]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %3:_(s32) = COPY $a1 |
| %0:_(s64) = G_MERGE_VALUES %2(s32), %3(s32) |
| %4:_(s32) = COPY $a2 |
| %5:_(s32) = COPY $a3 |
| %1:_(s64) = G_MERGE_VALUES %4(s32), %5(s32) |
| %6:_(s1) = G_ICMP intpred(ugt), %0(s64), %1 |
| %7:_(s32) = G_ANYEXT %6(s1) |
| $v0 = COPY %7(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: uge_i64 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1, $a2, $a3 |
| |
| ; MIPS32-LABEL: name: uge_i64 |
| ; MIPS32: liveins: $a0, $a1, $a2, $a3 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2 |
| ; MIPS32-NEXT: [[COPY3:%[0-9]+]]:_(s32) = COPY $a3 |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(uge), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP1:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP2:%[0-9]+]]:_(s32) = G_ICMP intpred(uge), [[COPY]](s32), [[COPY2]] |
| ; MIPS32-NEXT: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP1]](s32), [[ICMP2]], [[ICMP]] |
| ; MIPS32-NEXT: $v0 = COPY [[SELECT]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %3:_(s32) = COPY $a1 |
| %0:_(s64) = G_MERGE_VALUES %2(s32), %3(s32) |
| %4:_(s32) = COPY $a2 |
| %5:_(s32) = COPY $a3 |
| %1:_(s64) = G_MERGE_VALUES %4(s32), %5(s32) |
| %6:_(s1) = G_ICMP intpred(uge), %0(s64), %1 |
| %7:_(s32) = G_ANYEXT %6(s1) |
| $v0 = COPY %7(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: ult_i64 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1, $a2, $a3 |
| |
| ; MIPS32-LABEL: name: ult_i64 |
| ; MIPS32: liveins: $a0, $a1, $a2, $a3 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2 |
| ; MIPS32-NEXT: [[COPY3:%[0-9]+]]:_(s32) = COPY $a3 |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ult), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP1:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP2:%[0-9]+]]:_(s32) = G_ICMP intpred(ult), [[COPY]](s32), [[COPY2]] |
| ; MIPS32-NEXT: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP1]](s32), [[ICMP2]], [[ICMP]] |
| ; MIPS32-NEXT: $v0 = COPY [[SELECT]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %3:_(s32) = COPY $a1 |
| %0:_(s64) = G_MERGE_VALUES %2(s32), %3(s32) |
| %4:_(s32) = COPY $a2 |
| %5:_(s32) = COPY $a3 |
| %1:_(s64) = G_MERGE_VALUES %4(s32), %5(s32) |
| %6:_(s1) = G_ICMP intpred(ult), %0(s64), %1 |
| %7:_(s32) = G_ANYEXT %6(s1) |
| $v0 = COPY %7(s32) |
| RetRA implicit $v0 |
| |
| ... |
| --- |
| name: ule_i64 |
| alignment: 4 |
| tracksRegLiveness: true |
| body: | |
| bb.1.entry: |
| liveins: $a0, $a1, $a2, $a3 |
| |
| ; MIPS32-LABEL: name: ule_i64 |
| ; MIPS32: liveins: $a0, $a1, $a2, $a3 |
| ; MIPS32-NEXT: {{ $}} |
| ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $a0 |
| ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1 |
| ; MIPS32-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2 |
| ; MIPS32-NEXT: [[COPY3:%[0-9]+]]:_(s32) = COPY $a3 |
| ; MIPS32-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ule), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP1:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY3]] |
| ; MIPS32-NEXT: [[ICMP2:%[0-9]+]]:_(s32) = G_ICMP intpred(ule), [[COPY]](s32), [[COPY2]] |
| ; MIPS32-NEXT: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP1]](s32), [[ICMP2]], [[ICMP]] |
| ; MIPS32-NEXT: $v0 = COPY [[SELECT]](s32) |
| ; MIPS32-NEXT: RetRA implicit $v0 |
| %2:_(s32) = COPY $a0 |
| %3:_(s32) = COPY $a1 |
| %0:_(s64) = G_MERGE_VALUES %2(s32), %3(s32) |
| %4:_(s32) = COPY $a2 |
| %5:_(s32) = COPY $a3 |
| %1:_(s64) = G_MERGE_VALUES %4(s32), %5(s32) |
| %6:_(s1) = G_ICMP intpred(ule), %0(s64), %1 |
| %7:_(s32) = G_ANYEXT %6(s1) |
| $v0 = COPY %7(s32) |
| RetRA implicit $v0 |
| |
| ... |