1# RUN: llc -march=amdgcn -run-pass=instruction-select -verify-machineinstrs -global-isel %s -o - | FileCheck %s -check-prefixes=GCN 2 3--- | 4 define void @cvt_pkrtz(i32 addrspace(1)* %global0) { ret void } 5... 6--- 7 8name: cvt_pkrtz 9legalized: true 10regBankSelected: true 11 12# GCN-LABEL: name: cvt_pkrtz 13body: | 14 bb.0: 15 liveins: $sgpr0, $vgpr0, $vgpr1, $vgpr3_vgpr4 16 17 ; GCN: [[SGPR0:%[0-9]+]]:sreg_32_xm0 = COPY $sgpr0 18 %0:sgpr(s32) = COPY $sgpr0 19 ; GCN: [[VGPR0:%[0-9]+]]:vgpr_32 = COPY $vgpr0 20 %1:vgpr(s32) = COPY $vgpr0 21 ; GCN: [[VGPR1:%[0-9]+]]:vgpr_32 = COPY $vgpr1 22 %2:vgpr(s32) = COPY $vgpr1 23 %3:vgpr(s64) = COPY $vgpr3_vgpr4 24 25 ; cvt_pkrtz vs 26 ; GCN: V_CVT_PKRTZ_F16_F32_e32 [[SGPR0]], [[VGPR0]] 27 %4:vgpr(<2 x s16>) = G_INTRINSIC intrinsic(@llvm.amdgcn.cvt.pkrtz), %1, %0 28 29 ; cvt_pkrtz sv 30 ; GCN: V_CVT_PKRTZ_F16_F32_e32 [[SGPR0]], [[VGPR0]] 31 %5:vgpr(<2 x s16>) = G_INTRINSIC intrinsic(@llvm.amdgcn.cvt.pkrtz), %0, %1 32 33 ; cvt_pkrtz vv 34 ; GCN: V_CVT_PKRTZ_F16_F32_e32 [[VGPR0]], [[VGPR1]] 35 %6:vgpr(<2 x s16>) = G_INTRINSIC intrinsic(@llvm.amdgcn.cvt.pkrtz), %1, %2 36 37 %7:vgpr(s32) = G_BITCAST %4 38 %8:vgpr(s32) = G_BITCAST %5 39 %9:vgpr(s32) = G_BITCAST %6 40 G_STORE %7, %3 :: (store 4 into %ir.global0) 41 G_STORE %8, %3 :: (store 4 into %ir.global0) 42 G_STORE %9, %3 :: (store 4 into %ir.global0) 43... 44--- 45