1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
5 define void @inttoptr() {entry: ret void}
6 define void @ptrtoint() {entry: ret void}
14 tracksRegLiveness: true
19 ; MIPS32-LABEL: name: inttoptr
20 ; MIPS32: liveins: $a0
21 ; MIPS32: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
22 ; MIPS32: $v0 = COPY [[COPY]]
23 ; MIPS32: RetRA implicit $v0
24 %0:gprb(s32) = COPY $a0
25 %1:gprb(p0) = G_INTTOPTR %0(s32)
35 tracksRegLiveness: true
40 ; MIPS32-LABEL: name: ptrtoint
41 ; MIPS32: liveins: $a0
42 ; MIPS32: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
43 ; MIPS32: $v0 = COPY [[COPY]]
44 ; MIPS32: RetRA implicit $v0
45 %0:gprb(p0) = COPY $a0
46 %1:gprb(s32) = G_PTRTOINT %0(p0)