1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=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: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
14 ; CHECK: [[TRUNC:%[0-9]+]]:sgpr(s32) = G_TRUNC [[COPY]](s64)
15 %0:_(s64) = COPY $sgpr0_sgpr1
16 %1:_(s32) = G_TRUNC %0
20 name: trunc_i64_to_i32_v
26 ; CHECK-LABEL: name: trunc_i64_to_i32_v
27 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
28 ; CHECK: [[TRUNC:%[0-9]+]]:vgpr(s32) = G_TRUNC [[COPY]](s64)
29 %0:_(s64) = COPY $vgpr0_vgpr1
30 %1:_(s32) = G_TRUNC %0
33 name: trunc_i64_to_i1_s
39 ; CHECK-LABEL: name: trunc_i64_to_i1_s
40 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
41 ; CHECK: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY]](s64)
42 %0:_(s64) = COPY $sgpr0_sgpr1
47 name: trunc_i64_to_i1_v
53 ; CHECK-LABEL: name: trunc_i64_to_i1_v
54 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
55 ; CHECK: [[TRUNC:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY]](s64)
56 %0:_(s64) = COPY $vgpr0_vgpr1
61 name: trunc_i32_to_i1_s
67 ; CHECK-LABEL: name: trunc_i32_to_i1_s
68 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
69 ; CHECK: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY]](s32)
70 %0:_(s32) = COPY $sgpr0
75 name: trunc_i32_to_i1_v
81 ; CHECK-LABEL: name: trunc_i32_to_i1_v
82 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
83 ; CHECK: [[TRUNC:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY]](s32)
84 %0:_(s32) = COPY $vgpr0