1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect -regbankselect-fast  -verify-machineinstrs %s -o - | FileCheck %s
3# RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect -regbankselect-greedy  -verify-machineinstrs %s -o - | FileCheck %s
4
5---
6name: ds_swizzle_s
7legalized: true
8tracksRegLiveness: true
9body: |
10  bb.0:
11    liveins: $sgpr0
12
13    ; CHECK-LABEL: name: ds_swizzle_s
14    ; CHECK: liveins: $sgpr0
15    ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
16    ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
17    ; CHECK: [[INT:%[0-9]+]]:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ds.swizzle), [[COPY1]](s32), 0
18    %0:_(s32) = COPY $sgpr0
19    %1:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ds.swizzle), %0, 0
20
21...
22