1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -march=amdgcn -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3# RUN: llc -march=amdgcn -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
4
5---
6name: inttoptr_s
7legalized: true
8
9body: |
10  bb.0:
11    liveins: $sgpr0_sgpr1
12    ; CHECK-LABEL: name: inttoptr_s
13    ; CHECK: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
14    ; CHECK: [[INTTOPTR:%[0-9]+]]:sgpr(p4) = G_INTTOPTR [[COPY]](s64)
15    %0:_(s64) = COPY $sgpr0_sgpr1
16    %1:_(p4) = G_INTTOPTR %0
17...
18
19---
20name: inttoptr_v
21legalized: true
22
23body: |
24  bb.0:
25    liveins: $vgpr0_vgpr1
26    ; CHECK-LABEL: name: inttoptr_v
27    ; CHECK: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
28    ; CHECK: [[INTTOPTR:%[0-9]+]]:vgpr(p0) = G_INTTOPTR [[COPY]](s64)
29    %0:_(s64) = COPY $vgpr0_vgpr1
30    %1:_(p0) = G_INTTOPTR %0
31...
32