[AMDGPU] Make v8i16/v8f16 legal
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / inst-select-amdgcn.ds.swizzle.mir
blob6e705ae6133fa643f3f7ab05567cc3da593c951d
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=tahiti -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
4 ---
6 name: ds_swizzle_0
7 legalized:       true
8 regBankSelected: true
9 tracksRegLiveness: true
12 body: |
13   bb.0:
14     liveins: $vgpr0
15     ; CHECK-LABEL: name: ds_swizzle_0
16     ; CHECK: liveins: $vgpr0
17     ; CHECK: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
18     ; CHECK: [[DS_SWIZZLE_B32_:%[0-9]+]]:vgpr_32 = DS_SWIZZLE_B32 [[COPY]], 0, 0, implicit $exec
19     ; CHECK: S_ENDPGM 0, implicit [[DS_SWIZZLE_B32_]]
20     %0:vgpr(s32) = COPY $vgpr0
21     %1:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ds.swizzle), %0, 0
22     S_ENDPGM 0, implicit %1
24 ...
26 ---
28 name: ds_swizzle_65535
29 legalized:       true
30 regBankSelected: true
31 tracksRegLiveness: true
34 body: |
35   bb.0:
36     liveins: $vgpr0
37     ; CHECK-LABEL: name: ds_swizzle_65535
38     ; CHECK: liveins: $vgpr0
39     ; CHECK: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
40     ; CHECK: [[DS_SWIZZLE_B32_:%[0-9]+]]:vgpr_32 = DS_SWIZZLE_B32 [[COPY]], 65535, 0, implicit $exec
41     ; CHECK: S_ENDPGM 0, implicit [[DS_SWIZZLE_B32_]]
42     %0:vgpr(s32) = COPY $vgpr0
43     %1:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ds.swizzle), %0, 65535
44     S_ENDPGM 0, implicit %1
46 ...