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 @ne_i32() {entry: ret void}
6  define void @eq_ptr() {entry: ret void}
7
8...
9---
10name:            ne_i32
11alignment:       4
12legalized:       true
13tracksRegLiveness: true
14body:             |
15  bb.1.entry:
16    liveins: $a0, $a1
17
18    ; MIPS32-LABEL: name: ne_i32
19    ; MIPS32: liveins: $a0, $a1
20    ; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
21    ; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
22    ; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(ne), [[COPY]](s32), [[COPY1]]
23    ; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
24    ; MIPS32: $v0 = COPY [[COPY2]](s32)
25    ; MIPS32: RetRA implicit $v0
26    %0:_(s32) = COPY $a0
27    %1:_(s32) = COPY $a1
28    %4:_(s32) = G_ICMP intpred(ne), %0(s32), %1
29    %3:_(s32) = COPY %4(s32)
30    $v0 = COPY %3(s32)
31    RetRA implicit $v0
32
33...
34---
35name:            eq_ptr
36alignment:       4
37legalized:       true
38tracksRegLiveness: true
39body:             |
40  bb.1.entry:
41    liveins: $a0, $a1
42
43    ; MIPS32-LABEL: name: eq_ptr
44    ; MIPS32: liveins: $a0, $a1
45    ; MIPS32: [[COPY:%[0-9]+]]:gprb(p0) = COPY $a0
46    ; MIPS32: [[COPY1:%[0-9]+]]:gprb(p0) = COPY $a1
47    ; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(eq), [[COPY]](p0), [[COPY1]]
48    ; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
49    ; MIPS32: $v0 = COPY [[COPY2]](s32)
50    ; MIPS32: RetRA implicit $v0
51    %0:_(p0) = COPY $a0
52    %1:_(p0) = COPY $a1
53    %4:_(s32) = G_ICMP intpred(eq), %0(p0), %1
54    %3:_(s32) = COPY %4(s32)
55    $v0 = COPY %3(s32)
56    RetRA implicit $v0
57
58...
59