• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3
4--- |
5
6  define i64* @inttoptr_p0_s64(i64 %val) {
7  entry:
8    %0 = inttoptr i64 %val to i64*
9    ret i64* %0
10  }
11
12...
13---
14name:            inttoptr_p0_s64
15alignment:       16
16tracksRegLiveness: true
17registers:
18  - { id: 0, class: _ }
19  - { id: 1, class: _ }
20body:             |
21  bb.1.entry:
22    liveins: $rdi
23
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
30    %0:_(s64) = COPY $rdi
31    %1:_(p0) = G_INTTOPTR %0(s64)
32    $rax = COPY %1(p0)
33    RET 0, implicit $rax
34
35...
36