brintos

brintos / llvm-project-archived public Read only

0
0
Text · 492 B · 2fbf2e2 Raw
18 lines · plain
1; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=gfx1100 < %s | FileCheck %s2 3; Check that we do not assume any default stack size for PAL code object4; indirect calls. The driver knows the max recursion depth, so it can compute5; a more accurate value.6 7; CHECK: ScratchSize: 08; CHECK: scratch_memory_size: 09define amdgpu_vs void @test() {10.entry:11  %0 = call i64 @llvm.amdgcn.s.getpc()12  %1 = inttoptr i64 %0 to ptr13  call amdgpu_gfx void %1()14  ret void15}16 17declare i64 @llvm.amdgcn.s.getpc()18