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 @inttoptr() {entry: ret void}
6  define void @ptrtoint() {entry: ret void}
7
8...
9---
10name:            inttoptr
11alignment:       4
12legalized:       true
13tracksRegLiveness: true
14body:             |
15  bb.1.entry:
16    liveins: $a0
17
18    ; MIPS32-LABEL: name: inttoptr
19    ; MIPS32: liveins: $a0
20    ; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
21    ; MIPS32: [[INTTOPTR:%[0-9]+]]:gprb(p0) = G_INTTOPTR [[COPY]](s32)
22    ; MIPS32: $v0 = COPY [[INTTOPTR]](p0)
23    ; MIPS32: RetRA implicit $v0
24    %0:_(s32) = COPY $a0
25    %1:_(p0) = G_INTTOPTR %0(s32)
26    $v0 = COPY %1(p0)
27    RetRA implicit $v0
28
29...
30---
31name:            ptrtoint
32alignment:       4
33legalized:       true
34tracksRegLiveness: true
35body:             |
36  bb.1.entry:
37    liveins: $a0
38
39    ; MIPS32-LABEL: name: ptrtoint
40    ; MIPS32: liveins: $a0
41    ; MIPS32: [[COPY:%[0-9]+]]:gprb(p0) = COPY $a0
42    ; MIPS32: [[PTRTOINT:%[0-9]+]]:gprb(s32) = G_PTRTOINT [[COPY]](p0)
43    ; MIPS32: $v0 = COPY [[PTRTOINT]](s32)
44    ; MIPS32: RetRA implicit $v0
45    %0:_(p0) = COPY $a0
46    %1:_(s32) = G_PTRTOINT %0(p0)
47    $v0 = COPY %1(s32)
48    RetRA implicit $v0
49
50...
51