1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=tahiti -run-pass=legalizer -o - %s | FileCheck -check-prefix=SI %s
3 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=hawaii -run-pass=legalizer -o - %s | FileCheck -check-prefix=CI %s
4 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer -o - %s | FileCheck -check-prefix=VI %s
5 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx900 -run-pass=legalizer -o - %s | FileCheck -check-prefix=GFX9 %s
8 name: test_intrinsic_trunc_s16
13 ; SI-LABEL: name: test_intrinsic_trunc_s16
14 ; SI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
15 ; SI: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
16 ; SI: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT [[TRUNC]](s16)
17 ; SI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[FPEXT]]
18 ; SI: [[FPTRUNC:%[0-9]+]]:_(s16) = G_FPTRUNC [[INTRINSIC_TRUNC]](s32)
19 ; SI: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[FPTRUNC]](s16)
20 ; SI: $vgpr0 = COPY [[ANYEXT]](s32)
21 ; CI-LABEL: name: test_intrinsic_trunc_s16
22 ; CI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
23 ; CI: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
24 ; CI: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT [[TRUNC]](s16)
25 ; CI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[FPEXT]]
26 ; CI: [[FPTRUNC:%[0-9]+]]:_(s16) = G_FPTRUNC [[INTRINSIC_TRUNC]](s32)
27 ; CI: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[FPTRUNC]](s16)
28 ; CI: $vgpr0 = COPY [[ANYEXT]](s32)
29 ; VI-LABEL: name: test_intrinsic_trunc_s16
30 ; VI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
31 ; VI: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
32 ; VI: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT [[TRUNC]](s16)
33 ; VI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[FPEXT]]
34 ; VI: [[FPTRUNC:%[0-9]+]]:_(s16) = G_FPTRUNC [[INTRINSIC_TRUNC]](s32)
35 ; VI: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[FPTRUNC]](s16)
36 ; VI: $vgpr0 = COPY [[ANYEXT]](s32)
37 ; GFX9-LABEL: name: test_intrinsic_trunc_s16
38 ; GFX9: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
39 ; GFX9: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
40 ; GFX9: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT [[TRUNC]](s16)
41 ; GFX9: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[FPEXT]]
42 ; GFX9: [[FPTRUNC:%[0-9]+]]:_(s16) = G_FPTRUNC [[INTRINSIC_TRUNC]](s32)
43 ; GFX9: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[FPTRUNC]](s16)
44 ; GFX9: $vgpr0 = COPY [[ANYEXT]](s32)
45 %0:_(s32) = COPY $vgpr0
46 %1:_(s16) = G_TRUNC %0
47 %2:_(s16) = G_INTRINSIC_TRUNC %1
48 %3:_(s32) = G_ANYEXT %2
53 name: test_intrinsic_trunc_s32
58 ; SI-LABEL: name: test_intrinsic_trunc_s32
59 ; SI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
60 ; SI: $vgpr0 = COPY [[COPY]](s32)
61 ; CI-LABEL: name: test_intrinsic_trunc_s32
62 ; CI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
63 ; CI: $vgpr0 = COPY [[COPY]](s32)
64 ; VI-LABEL: name: test_intrinsic_trunc_s32
65 ; VI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
66 ; VI: $vgpr0 = COPY [[COPY]](s32)
67 ; GFX9-LABEL: name: test_intrinsic_trunc_s32
68 ; GFX9: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
69 ; GFX9: $vgpr0 = COPY [[COPY]](s32)
70 %0:_(s32) = COPY $vgpr0
71 %1:_(s32) = G_INTRINSIC_TRUNC %0
76 name: test_intrinsic_trunc_s64
81 ; SI-LABEL: name: test_intrinsic_trunc_s64
82 ; SI: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
83 ; SI: [[UV:%[0-9]+]]:_(s32), [[UV1:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[COPY]](s64)
84 ; SI: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 20
85 ; SI: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 11
86 ; SI: [[INT:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ubfe), [[C]](s32), [[C1]](s32)
87 ; SI: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 1023
88 ; SI: [[SUB:%[0-9]+]]:_(s32) = G_SUB [[INT]], [[C2]]
89 ; SI: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 -2147483648
90 ; SI: [[AND:%[0-9]+]]:_(s32) = G_AND [[UV1]], [[C3]]
91 ; SI: [[C4:%[0-9]+]]:_(s64) = G_CONSTANT i64 4503599627370495
92 ; SI: [[C5:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
93 ; SI: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[C5]](s32), [[AND]](s32)
94 ; SI: [[ASHR:%[0-9]+]]:_(s64) = G_ASHR [[C4]], [[SUB]](s32)
95 ; SI: [[C6:%[0-9]+]]:_(s64) = G_CONSTANT i64 -1
96 ; SI: [[XOR:%[0-9]+]]:_(s64) = G_XOR [[ASHR]], [[C6]]
97 ; SI: [[AND1:%[0-9]+]]:_(s64) = G_AND [[COPY]], [[XOR]]
98 ; SI: [[C7:%[0-9]+]]:_(s32) = G_CONSTANT i32 51
99 ; SI: [[ICMP:%[0-9]+]]:_(s1) = G_ICMP intpred(slt), [[SUB]](s32), [[C5]]
100 ; SI: [[ICMP1:%[0-9]+]]:_(s1) = G_ICMP intpred(sgt), [[SUB]](s32), [[C7]]
101 ; SI: [[SELECT:%[0-9]+]]:_(s64) = G_SELECT [[ICMP]](s1), [[MV]], [[AND1]]
102 ; SI: [[SELECT1:%[0-9]+]]:_(s64) = G_SELECT [[ICMP1]](s1), [[COPY]], [[SELECT]]
103 ; SI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[COPY]]
104 ; SI: $vgpr0_vgpr1 = COPY [[INTRINSIC_TRUNC]](s64)
105 ; CI-LABEL: name: test_intrinsic_trunc_s64
106 ; CI: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
107 ; CI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[COPY]]
108 ; CI: $vgpr0_vgpr1 = COPY [[INTRINSIC_TRUNC]](s64)
109 ; VI-LABEL: name: test_intrinsic_trunc_s64
110 ; VI: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
111 ; VI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[COPY]]
112 ; VI: $vgpr0_vgpr1 = COPY [[INTRINSIC_TRUNC]](s64)
113 ; GFX9-LABEL: name: test_intrinsic_trunc_s64
114 ; GFX9: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
115 ; GFX9: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[COPY]]
116 ; GFX9: $vgpr0_vgpr1 = COPY [[INTRINSIC_TRUNC]](s64)
117 %0:_(s64) = COPY $vgpr0_vgpr1
118 %1:_(s64) = G_INTRINSIC_TRUNC %0
119 $vgpr0_vgpr1 = COPY %1
123 name: test_intrinsic_trunc_v2s16
128 ; SI-LABEL: name: test_intrinsic_trunc_v2s16
129 ; SI: [[COPY:%[0-9]+]]:_(<2 x s16>) = COPY $vgpr0
130 ; SI: $vgpr0 = COPY [[COPY]](<2 x s16>)
131 ; CI-LABEL: name: test_intrinsic_trunc_v2s16
132 ; CI: [[COPY:%[0-9]+]]:_(<2 x s16>) = COPY $vgpr0
133 ; CI: $vgpr0 = COPY [[COPY]](<2 x s16>)
134 ; VI-LABEL: name: test_intrinsic_trunc_v2s16
135 ; VI: [[COPY:%[0-9]+]]:_(<2 x s16>) = COPY $vgpr0
136 ; VI: $vgpr0 = COPY [[COPY]](<2 x s16>)
137 ; GFX9-LABEL: name: test_intrinsic_trunc_v2s16
138 ; GFX9: [[COPY:%[0-9]+]]:_(<2 x s16>) = COPY $vgpr0
139 ; GFX9: $vgpr0 = COPY [[COPY]](<2 x s16>)
140 %0:_(<2 x s16>) = COPY $vgpr0
141 %1:_(<2 x s16>) = G_INTRINSIC_TRUNC %0
146 name: test_intrinsic_trunc_v2s32
149 liveins: $vgpr0_vgpr1
151 ; SI-LABEL: name: test_intrinsic_trunc_v2s32
152 ; SI: [[COPY:%[0-9]+]]:_(<2 x s32>) = COPY $vgpr0_vgpr1
153 ; SI: [[UV:%[0-9]+]]:_(s32), [[UV1:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[COPY]](<2 x s32>)
154 ; SI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[UV]]
155 ; SI: [[INTRINSIC_TRUNC1:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[UV1]]
156 ; SI: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s32>) = G_BUILD_VECTOR [[INTRINSIC_TRUNC]](s32), [[INTRINSIC_TRUNC1]](s32)
157 ; SI: $vgpr0_vgpr1 = COPY [[BUILD_VECTOR]](<2 x s32>)
158 ; CI-LABEL: name: test_intrinsic_trunc_v2s32
159 ; CI: [[COPY:%[0-9]+]]:_(<2 x s32>) = COPY $vgpr0_vgpr1
160 ; CI: [[UV:%[0-9]+]]:_(s32), [[UV1:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[COPY]](<2 x s32>)
161 ; CI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[UV]]
162 ; CI: [[INTRINSIC_TRUNC1:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[UV1]]
163 ; CI: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s32>) = G_BUILD_VECTOR [[INTRINSIC_TRUNC]](s32), [[INTRINSIC_TRUNC1]](s32)
164 ; CI: $vgpr0_vgpr1 = COPY [[BUILD_VECTOR]](<2 x s32>)
165 ; VI-LABEL: name: test_intrinsic_trunc_v2s32
166 ; VI: [[COPY:%[0-9]+]]:_(<2 x s32>) = COPY $vgpr0_vgpr1
167 ; VI: [[UV:%[0-9]+]]:_(s32), [[UV1:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[COPY]](<2 x s32>)
168 ; VI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[UV]]
169 ; VI: [[INTRINSIC_TRUNC1:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[UV1]]
170 ; VI: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s32>) = G_BUILD_VECTOR [[INTRINSIC_TRUNC]](s32), [[INTRINSIC_TRUNC1]](s32)
171 ; VI: $vgpr0_vgpr1 = COPY [[BUILD_VECTOR]](<2 x s32>)
172 ; GFX9-LABEL: name: test_intrinsic_trunc_v2s32
173 ; GFX9: [[COPY:%[0-9]+]]:_(<2 x s32>) = COPY $vgpr0_vgpr1
174 ; GFX9: [[UV:%[0-9]+]]:_(s32), [[UV1:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[COPY]](<2 x s32>)
175 ; GFX9: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[UV]]
176 ; GFX9: [[INTRINSIC_TRUNC1:%[0-9]+]]:_(s32) = G_INTRINSIC_TRUNC [[UV1]]
177 ; GFX9: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s32>) = G_BUILD_VECTOR [[INTRINSIC_TRUNC]](s32), [[INTRINSIC_TRUNC1]](s32)
178 ; GFX9: $vgpr0_vgpr1 = COPY [[BUILD_VECTOR]](<2 x s32>)
179 %0:_(<2 x s32>) = COPY $vgpr0_vgpr1
180 %1:_(<2 x s32>) = G_INTRINSIC_TRUNC %0
181 $vgpr0_vgpr1 = COPY %1
185 name: test_intrinsic_trunc_v2s64
188 liveins: $vgpr0_vgpr1_vgpr2_vgpr3
190 ; SI-LABEL: name: test_intrinsic_trunc_v2s64
191 ; SI: [[COPY:%[0-9]+]]:_(<2 x s64>) = COPY $vgpr0_vgpr1_vgpr2_vgpr3
192 ; SI: [[UV:%[0-9]+]]:_(s64), [[UV1:%[0-9]+]]:_(s64) = G_UNMERGE_VALUES [[COPY]](<2 x s64>)
193 ; SI: [[UV2:%[0-9]+]]:_(s32), [[UV3:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[UV]](s64)
194 ; SI: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 20
195 ; SI: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 11
196 ; SI: [[INT:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ubfe), [[C]](s32), [[C1]](s32)
197 ; SI: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 1023
198 ; SI: [[SUB:%[0-9]+]]:_(s32) = G_SUB [[INT]], [[C2]]
199 ; SI: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 -2147483648
200 ; SI: [[AND:%[0-9]+]]:_(s32) = G_AND [[UV3]], [[C3]]
201 ; SI: [[C4:%[0-9]+]]:_(s64) = G_CONSTANT i64 4503599627370495
202 ; SI: [[C5:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
203 ; SI: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[C5]](s32), [[AND]](s32)
204 ; SI: [[ASHR:%[0-9]+]]:_(s64) = G_ASHR [[C4]], [[SUB]](s32)
205 ; SI: [[C6:%[0-9]+]]:_(s64) = G_CONSTANT i64 -1
206 ; SI: [[XOR:%[0-9]+]]:_(s64) = G_XOR [[ASHR]], [[C6]]
207 ; SI: [[AND1:%[0-9]+]]:_(s64) = G_AND [[UV]], [[XOR]]
208 ; SI: [[C7:%[0-9]+]]:_(s32) = G_CONSTANT i32 51
209 ; SI: [[ICMP:%[0-9]+]]:_(s1) = G_ICMP intpred(slt), [[SUB]](s32), [[C5]]
210 ; SI: [[ICMP1:%[0-9]+]]:_(s1) = G_ICMP intpred(sgt), [[SUB]](s32), [[C7]]
211 ; SI: [[SELECT:%[0-9]+]]:_(s64) = G_SELECT [[ICMP]](s1), [[MV]], [[AND1]]
212 ; SI: [[SELECT1:%[0-9]+]]:_(s64) = G_SELECT [[ICMP1]](s1), [[UV]], [[SELECT]]
213 ; SI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[UV]]
214 ; SI: [[UV4:%[0-9]+]]:_(s32), [[UV5:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[UV1]](s64)
215 ; SI: [[INT1:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ubfe), [[C]](s32), [[C1]](s32)
216 ; SI: [[SUB1:%[0-9]+]]:_(s32) = G_SUB [[INT1]], [[C2]]
217 ; SI: [[AND2:%[0-9]+]]:_(s32) = G_AND [[UV5]], [[C3]]
218 ; SI: [[MV1:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[C5]](s32), [[AND2]](s32)
219 ; SI: [[ASHR1:%[0-9]+]]:_(s64) = G_ASHR [[C4]], [[SUB1]](s32)
220 ; SI: [[XOR1:%[0-9]+]]:_(s64) = G_XOR [[ASHR1]], [[C6]]
221 ; SI: [[AND3:%[0-9]+]]:_(s64) = G_AND [[UV1]], [[XOR1]]
222 ; SI: [[ICMP2:%[0-9]+]]:_(s1) = G_ICMP intpred(slt), [[SUB1]](s32), [[C5]]
223 ; SI: [[ICMP3:%[0-9]+]]:_(s1) = G_ICMP intpred(sgt), [[SUB1]](s32), [[C7]]
224 ; SI: [[SELECT1:%[0-9]+]]:_(s64) = G_SELECT [[ICMP2]](s1), [[MV1]], [[AND3]]
225 ; SI: [[SELECT2:%[0-9]+]]:_(s64) = G_SELECT [[ICMP3]](s1), [[UV1]], [[SELECT1]]
226 ; SI: [[INTRINSIC_TRUNC1:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[UV1]]
227 ; SI: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s64>) = G_BUILD_VECTOR [[INTRINSIC_TRUNC]](s64), [[INTRINSIC_TRUNC1]](s64)
228 ; SI: $vgpr0_vgpr1_vgpr2_vgpr3 = COPY [[BUILD_VECTOR]](<2 x s64>)
229 ; CI-LABEL: name: test_intrinsic_trunc_v2s64
230 ; CI: [[COPY:%[0-9]+]]:_(<2 x s64>) = COPY $vgpr0_vgpr1_vgpr2_vgpr3
231 ; CI: [[UV:%[0-9]+]]:_(s64), [[UV1:%[0-9]+]]:_(s64) = G_UNMERGE_VALUES [[COPY]](<2 x s64>)
232 ; CI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[UV]]
233 ; CI: [[INTRINSIC_TRUNC1:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[UV1]]
234 ; CI: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s64>) = G_BUILD_VECTOR [[INTRINSIC_TRUNC]](s64), [[INTRINSIC_TRUNC1]](s64)
235 ; CI: $vgpr0_vgpr1_vgpr2_vgpr3 = COPY [[BUILD_VECTOR]](<2 x s64>)
236 ; VI-LABEL: name: test_intrinsic_trunc_v2s64
237 ; VI: [[COPY:%[0-9]+]]:_(<2 x s64>) = COPY $vgpr0_vgpr1_vgpr2_vgpr3
238 ; VI: [[UV:%[0-9]+]]:_(s64), [[UV1:%[0-9]+]]:_(s64) = G_UNMERGE_VALUES [[COPY]](<2 x s64>)
239 ; VI: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[UV]]
240 ; VI: [[INTRINSIC_TRUNC1:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[UV1]]
241 ; VI: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s64>) = G_BUILD_VECTOR [[INTRINSIC_TRUNC]](s64), [[INTRINSIC_TRUNC1]](s64)
242 ; VI: $vgpr0_vgpr1_vgpr2_vgpr3 = COPY [[BUILD_VECTOR]](<2 x s64>)
243 ; GFX9-LABEL: name: test_intrinsic_trunc_v2s64
244 ; GFX9: [[COPY:%[0-9]+]]:_(<2 x s64>) = COPY $vgpr0_vgpr1_vgpr2_vgpr3
245 ; GFX9: [[UV:%[0-9]+]]:_(s64), [[UV1:%[0-9]+]]:_(s64) = G_UNMERGE_VALUES [[COPY]](<2 x s64>)
246 ; GFX9: [[INTRINSIC_TRUNC:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[UV]]
247 ; GFX9: [[INTRINSIC_TRUNC1:%[0-9]+]]:_(s64) = G_INTRINSIC_TRUNC [[UV1]]
248 ; GFX9: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s64>) = G_BUILD_VECTOR [[INTRINSIC_TRUNC]](s64), [[INTRINSIC_TRUNC1]](s64)
249 ; GFX9: $vgpr0_vgpr1_vgpr2_vgpr3 = COPY [[BUILD_VECTOR]](<2 x s64>)
250 %0:_(<2 x s64>) = COPY $vgpr0_vgpr1_vgpr2_vgpr3
251 %1:_(<2 x s64>) = G_INTRINSIC_TRUNC %0
252 $vgpr0_vgpr1_vgpr2_vgpr3 = COPY %1