[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / enable-scratch-only-dynamic-stack.ll
blob22f90682aa973883e90f1e181e4afa75d3ca4b53
1 ; RUN: sed 's/CODE_OBJECT_VERSION/500/g' %s | llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 | FileCheck -check-prefixes=GCN,COV5 %s
2 ; RUN: sed 's/CODE_OBJECT_VERSION/400/g' %s | llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 | FileCheck -check-prefixes=GCN,COV4 %s
4 @gv.fptr0 = external hidden unnamed_addr addrspace(4) constant ptr, align 4
6 ; No stack objects, only indirect call has to enable scrathch
7 ; GCN-LABEL: test_indirect_call:
9 ; COV5: .amdhsa_private_segment_fixed_size 0{{$}}
10 ; COV4: .amdhsa_private_segment_fixed_size 16384{{$}}
12 ; GCN: .amdhsa_user_sgpr_private_segment_buffer 1
14 ; COV5: .amdhsa_uses_dynamic_stack 1
15 ; GCN: .amdhsa_system_sgpr_private_segment_wavefront_offset 1
16 define amdgpu_kernel void @test_indirect_call() {
17   %fptr = load ptr, ptr addrspace(4) @gv.fptr0
18   call void %fptr()
19   ret void
22 !llvm.module.flags = !{!0}
23 !0 = !{i32 1, !"amdgpu_code_object_version", i32 CODE_OBJECT_VERSION}