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
9 tracksRegLiveness: true
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
28 name: ds_swizzle_65535
31 tracksRegLiveness: true
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