1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -march=amdgcn -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
12 ; CHECK-LABEL: name: inttoptr_s
13 ; CHECK: liveins: $sgpr0_sgpr1
15 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
16 ; CHECK-NEXT: [[INTTOPTR:%[0-9]+]]:sgpr(p4) = G_INTTOPTR [[COPY]](s64)
17 %0:_(s64) = COPY $sgpr0_sgpr1
18 %1:_(p4) = G_INTTOPTR %0
28 ; CHECK-LABEL: name: inttoptr_v
29 ; CHECK: liveins: $vgpr0_vgpr1
31 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
32 ; CHECK-NEXT: [[INTTOPTR:%[0-9]+]]:vgpr(p0) = G_INTTOPTR [[COPY]](s64)
33 %0:_(s64) = COPY $vgpr0_vgpr1
34 %1:_(p0) = G_INTTOPTR %0