1# RUN: not --crash llc -march=amdgcn -run-pass=regbankselect  -regbankselect-fast  %s -o /dev/null 2>&1 | FileCheck %s
2# RUN: not --crash llc -march=amdgcn -run-pass=regbankselect  -regbankselect-greedy  %s -o /dev/null 2>&1 | FileCheck %s
3
4# Check behavior for illegal copies.
5
6# CHECK: LLVM ERROR: unable to map instruction: $sgpr0 = COPY %0:vgpr(s32) (in function: illegal_copy_s32_v_to_s)
7
8---
9name: illegal_copy_s32_v_to_s
10legalized: true
11
12body: |
13  bb.0:
14    liveins: $vgpr0
15
16    %0:_(s32) = COPY $vgpr0
17    $sgpr0 = COPY %0
18...
19