25 lines · plain
1; RUN: llc -mcpu=gfx1200 < %s | FileCheck %s2target triple = "amdgcn--amdpal"3 4@global = addrspace(1) global i32 poison, align 45 6; CHECK-LABEL: amdpal.pipelines:7 8; Neither uses not writes a VGPR, but the hardware initializes the VGPRs that the kernel receives, so they count as used.9; CHECK-LABEL: .entry_point_symbol: kernel_use10; CHECK: .vgpr_count: 0x2011define amdgpu_cs void @kernel_use([32 x i32] %args) {12entry:13 %a = extractvalue [32 x i32] %args, 1414 store i32 %a, ptr addrspace(1) @global15 ret void16}17 18; Neither uses not writes a VGPR19; CHECK-LABEL: gfx_func:20; CHECK: .vgpr_count: 0x2021define amdgpu_gfx [32 x i32] @gfx_func([32 x i32] %args) {22entry:23 ret [32 x i32] %args24}25