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