1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -run-pass=instruction-select -simplify-mir \
3 # RUN: -verify-machineinstrs %s -o - | FileCheck %s
9 tracksRegLiveness: true
14 ; CHECK-LABEL: name: ptrtoint_s64
15 ; CHECK: liveins: $x10, $x11
17 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr = COPY $x10
18 ; CHECK-NEXT: $x10 = COPY [[COPY]]
19 ; CHECK-NEXT: PseudoRET implicit $x10
20 %0:gprb(p0) = COPY $x10
21 %1:gprb(s64) = G_PTRTOINT %0(p0)
23 PseudoRET implicit $x10
30 tracksRegLiveness: true
35 ; CHECK-LABEL: name: inttoptr_s64
36 ; CHECK: liveins: $x10, $x11
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr = COPY $x10
39 ; CHECK-NEXT: $x10 = COPY [[COPY]]
40 ; CHECK-NEXT: PseudoRET implicit $x10
41 %0:gprb(s64) = COPY $x10
42 %1:gprb(p0) = G_INTTOPTR %0(s64)
44 PseudoRET implicit $x10