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: ptrtoint_s
13 ; CHECK: liveins: $sgpr0_sgpr1
15 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(p1) = COPY $sgpr0_sgpr1
16 ; CHECK-NEXT: [[PTRTOINT:%[0-9]+]]:sgpr(s64) = G_PTRTOINT [[COPY]](p1)
17 %0:_(p1) = COPY $sgpr0_sgpr1
18 %1:_(s64) = G_PTRTOINT %0
28 ; CHECK-LABEL: name: ptrtoint_v
29 ; CHECK: liveins: $vgpr0_vgpr1
31 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(p1) = COPY $vgpr0_vgpr1
32 ; CHECK-NEXT: [[PTRTOINT:%[0-9]+]]:vgpr(s64) = G_PTRTOINT [[COPY]](p1)
33 %0:_(p1) = COPY $vgpr0_vgpr1
34 %1:_(s64) = G_PTRTOINT %0