1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=tahiti -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
5 name: ptrtoint_s_p3_to_s_s32
8 tracksRegLiveness: true
14 ; CHECK-LABEL: name: ptrtoint_s_p3_to_s_s32
15 ; CHECK: liveins: $sgpr0
17 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
18 ; CHECK-NEXT: S_ENDPGM 0, implicit [[COPY]]
19 %0:sgpr(p3) = COPY $sgpr0
20 %1:sgpr(s32) = G_PTRTOINT %0
21 S_ENDPGM 0, implicit %1
26 name: ptrtoint_s_p5_to_s_s32
29 tracksRegLiveness: true
35 ; CHECK-LABEL: name: ptrtoint_s_p5_to_s_s32
36 ; CHECK: liveins: $sgpr0
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
39 ; CHECK-NEXT: S_ENDPGM 0, implicit [[COPY]]
40 %0:sgpr(p5) = COPY $sgpr0
41 %1:sgpr(s32) = G_PTRTOINT %0
42 S_ENDPGM 0, implicit %1
47 name: ptrtoint_s_p0_to_s_s64
50 tracksRegLiveness: true
56 ; CHECK-LABEL: name: ptrtoint_s_p0_to_s_s64
57 ; CHECK: liveins: $sgpr0_sgpr1
59 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $sgpr0_sgpr1
60 ; CHECK-NEXT: S_ENDPGM 0, implicit [[COPY]]
61 %0:sgpr(p0) = COPY $sgpr0_sgpr1
62 %1:sgpr(s64) = G_PTRTOINT %0
63 S_ENDPGM 0, implicit %1
68 name: ptrtoint_s_p1_to_s_s64
71 tracksRegLiveness: true
77 ; CHECK-LABEL: name: ptrtoint_s_p1_to_s_s64
78 ; CHECK: liveins: $sgpr0_sgpr1
80 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $sgpr0_sgpr1
81 ; CHECK-NEXT: S_ENDPGM 0, implicit [[COPY]]
82 %0:sgpr(p1) = COPY $sgpr0_sgpr1
83 %1:sgpr(s64) = G_PTRTOINT %0
84 S_ENDPGM 0, implicit %1
89 name: ptrtoint_s_p999_to_s_s64
92 tracksRegLiveness: true
98 ; CHECK-LABEL: name: ptrtoint_s_p999_to_s_s64
99 ; CHECK: liveins: $sgpr0_sgpr1
101 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $sgpr0_sgpr1
102 ; CHECK-NEXT: S_ENDPGM 0, implicit [[COPY]]
103 %0:sgpr(p999) = COPY $sgpr0_sgpr1
104 %1:sgpr(s64) = G_PTRTOINT %0
105 S_ENDPGM 0, implicit %1