[AMDGPU] Make v8i16/v8f16 legal
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / regbankselect-amdgcn.ds.swizzle.mir
blob54c3a5009ca8c8f4ce78e1f7f3bc65f649d7106c
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
5 ---
6 name: ds_swizzle_s
7 legalized: true
8 tracksRegLiveness: true
9 body: |
10   bb.0:
11     liveins: $sgpr0
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
21 ...