1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=x86_64-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
6 define i64* @inttoptr_p0_s64(i64 %val) {
8 %0 = inttoptr i64 %val to i64*
18 tracksRegLiveness: true
20 - { id: 0, class: gpr }
21 - { id: 1, class: gpr }
26 ; CHECK-LABEL: name: inttoptr_p0_s64
27 ; CHECK: liveins: $rdi
28 ; CHECK: [[COPY:%[0-9]+]]:gr64 = COPY $rdi
29 ; CHECK: $rax = COPY [[COPY]]
30 ; CHECK: RET 0, implicit $rax
31 %0:gpr(s64) = COPY $rdi
32 %1:gpr(p0) = G_INTTOPTR %0(s64)