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 4 5--- 6name: trunc_i64_to_i32_s 7legalized: true 8 9body: | 10 bb.0: 11 liveins: $sgpr0_sgpr1 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 17... 18 19--- 20name: trunc_i64_to_i32_v 21legalized: true 22 23body: | 24 bb.0: 25 liveins: $vgpr0_vgpr1 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 31... 32--- 33name: trunc_i64_to_i1_s 34legalized: true 35 36body: | 37 bb.0: 38 liveins: $sgpr0_sgpr1 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 43 %1:_(s1) = G_TRUNC %0 44... 45 46--- 47name: trunc_i64_to_i1_v 48legalized: true 49 50body: | 51 bb.0: 52 liveins: $vgpr0_vgpr1 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 57 %1:_(s1) = G_TRUNC %0 58... 59 60--- 61name: trunc_i32_to_i1_s 62legalized: true 63 64body: | 65 bb.0: 66 liveins: $sgpr0 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 71 %1:_(s1) = G_TRUNC %0 72... 73 74--- 75name: trunc_i32_to_i1_v 76legalized: true 77 78body: | 79 bb.0: 80 liveins: $vgpr0 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 85 %1:_(s1) = G_TRUNC %0 86... 87