[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / inst-select-ptrtoint.mir
blob144a93f3771ab4e6338acfc3249db9b62dca4f41
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
3 ---
5 name: ptrtoint_s_p3_to_s_s32
6 legalized:       true
7 regBankSelected: true
8 tracksRegLiveness: true
10 body: |
11   bb.0:
12     liveins: $sgpr0
14     ; CHECK-LABEL: name: ptrtoint_s_p3_to_s_s32
15     ; CHECK: liveins: $sgpr0
16     ; CHECK-NEXT: {{  $}}
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
22 ...
24 ---
26 name: ptrtoint_s_p5_to_s_s32
27 legalized:       true
28 regBankSelected: true
29 tracksRegLiveness: true
31 body: |
32   bb.0:
33     liveins: $sgpr0
35     ; CHECK-LABEL: name: ptrtoint_s_p5_to_s_s32
36     ; CHECK: liveins: $sgpr0
37     ; CHECK-NEXT: {{  $}}
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
43 ...
45 ---
47 name: ptrtoint_s_p0_to_s_s64
48 legalized:       true
49 regBankSelected: true
50 tracksRegLiveness: true
52 body: |
53   bb.0:
54     liveins: $sgpr0_sgpr1
56     ; CHECK-LABEL: name: ptrtoint_s_p0_to_s_s64
57     ; CHECK: liveins: $sgpr0_sgpr1
58     ; CHECK-NEXT: {{  $}}
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
64 ...
66 ---
68 name: ptrtoint_s_p1_to_s_s64
69 legalized:       true
70 regBankSelected: true
71 tracksRegLiveness: true
73 body: |
74   bb.0:
75     liveins: $sgpr0_sgpr1
77     ; CHECK-LABEL: name: ptrtoint_s_p1_to_s_s64
78     ; CHECK: liveins: $sgpr0_sgpr1
79     ; CHECK-NEXT: {{  $}}
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
85 ...
87 ---
89 name: ptrtoint_s_p999_to_s_s64
90 legalized:       true
91 regBankSelected: true
92 tracksRegLiveness: true
94 body: |
95   bb.0:
96     liveins: $sgpr0_sgpr1
98     ; CHECK-LABEL: name: ptrtoint_s_p999_to_s_s64
99     ; CHECK: liveins: $sgpr0_sgpr1
100     ; CHECK-NEXT: {{  $}}
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