brintos

brintos / llvm-project-archived public Read only

0
0
Text · 967 B · a9f4bda Raw
27 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; Shouldn't report the part of %vgpr_args that's not used9; CHECK-LABEL: entry_point_symbol: cs_calling_chain10; CHECK: .vgpr_count:     0xa11define amdgpu_cs void @cs_calling_chain(i32 %vgpr, i32 inreg %sgpr) {12  %vgpr_args = insertvalue {i32, i32, i32, i32} poison, i32 %vgpr, 113  call void (ptr, i32, i32, {i32, i32, i32, i32}, i32, ...) @llvm.amdgcn.cs.chain.p0.i32.i32.s(14    ptr @chain_func, i32 0, i32 inreg %sgpr, {i32, i32, i32, i32} %vgpr_args, i32 0)15  unreachable16}17 18; Neither uses not writes a VGPR19; CHECK-LABEL: chain_func:20; CHECK: .vgpr_count:     0x121define amdgpu_cs_chain void @chain_func([32 x i32] %args) {22entry:23  call void (ptr, i32, {}, [32 x i32], i32, ...) @llvm.amdgcn.cs.chain.p0.i32.s.a(24        ptr @chain_func, i32 0, {} inreg {}, [32 x i32] %args, i32 0)25  unreachable26}27