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