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: fptrunc_s
7legalized: true
8
9body: |
10  bb.0:
11    liveins: $sgpr0_sgpr1
12    ; CHECK-LABEL: name: fptrunc_s
13    ; CHECK: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
14    ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s64) = COPY [[COPY]](s64)
15    ; CHECK: [[FPTRUNC:%[0-9]+]]:vgpr(s32) = G_FPTRUNC [[COPY1]](s64)
16    %0:_(s64) = COPY $sgpr0_sgpr1
17    %1:_(s32) = G_FPTRUNC %0
18...
19
20---
21name: fptrunc_v
22legalized: true
23
24body: |
25  bb.0:
26    liveins: $vgpr0_vgpr1
27    ; CHECK-LABEL: name: fptrunc_v
28    ; CHECK: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
29    ; CHECK: [[FPTRUNC:%[0-9]+]]:vgpr(s32) = G_FPTRUNC [[COPY]](s64)
30    %0:_(s64) = COPY $vgpr0_vgpr1
31    %1:_(s32) = G_FPTRUNC %0
32...
33