brintos

brintos / llvm-project-archived public Read only

0
0
Text · 588 B · cdd6e88 Raw
25 lines · plain
1; RUN: llc -mtriple=amdgcn-mesa-mesa3d < %s | FileCheck %s2 3; CHECK-LABEL: non_kernel_recursion:4define void @non_kernel_recursion(i32 %val) #2 {5  %cmp = icmp eq i32 %val, 06  br i1 %cmp, label %ret, label %call7 8call:9  %val.sub1 = sub i32 %val, 110  call void @non_kernel_recursion(i32 %val.sub1)11  br label %ret12 13ret:14  ret void15}16 17; CHECK-LABEL: kernel_caller_recursion:18; CHECK: .amd_kernel_code_t19; CHECK: is_dynamic_callstack = 120; CHECK: .end_amd_kernel_code_t21define amdgpu_kernel void @kernel_caller_recursion(i32 %n) #0 {22  call void @non_kernel_recursion(i32 %n)23  ret void24}25