1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
6 name: trunc_i64_to_i32_s
12 ; CHECK-LABEL: name: trunc_i64_to_i32_s
13 ; CHECK: liveins: $sgpr0_sgpr1
15 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
16 ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:sgpr(s32) = G_TRUNC [[COPY]](s64)
17 %0:_(s64) = COPY $sgpr0_sgpr1
18 %1:_(s32) = G_TRUNC %0
22 name: trunc_i64_to_i32_v
28 ; CHECK-LABEL: name: trunc_i64_to_i32_v
29 ; CHECK: liveins: $vgpr0_vgpr1
31 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
32 ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:vgpr(s32) = G_TRUNC [[COPY]](s64)
33 %0:_(s64) = COPY $vgpr0_vgpr1
34 %1:_(s32) = G_TRUNC %0
37 name: trunc_i64_to_i1_s
43 ; CHECK-LABEL: name: trunc_i64_to_i1_s
44 ; CHECK: liveins: $sgpr0_sgpr1
46 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
47 ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY]](s64)
48 %0:_(s64) = COPY $sgpr0_sgpr1
53 name: trunc_i64_to_i1_v
59 ; CHECK-LABEL: name: trunc_i64_to_i1_v
60 ; CHECK: liveins: $vgpr0_vgpr1
62 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
63 ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY]](s64)
64 %0:_(s64) = COPY $vgpr0_vgpr1
69 name: trunc_i32_to_i1_s
75 ; CHECK-LABEL: name: trunc_i32_to_i1_s
76 ; CHECK: liveins: $sgpr0
78 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
79 ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY]](s32)
80 %0:_(s32) = COPY $sgpr0
85 name: trunc_i32_to_i1_v
91 ; CHECK-LABEL: name: trunc_i32_to_i1_v
92 ; CHECK: liveins: $vgpr0
94 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
95 ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY]](s32)
96 %0:_(s32) = COPY $vgpr0