1 ; RUN: opt %s -mtriple amdgcn-- -analyze -divergence | FileCheck %s
3 ; CHECK-LABEL: Printing analysis 'Legacy Divergence Analysis' for function 'test_amdgpu_ps':
8 ; CHECK: <2 x i32> %arg3
9 ; CHECK: DIVERGENT: <3 x i32> %arg4
10 ; CHECK: DIVERGENT: float %arg5
11 ; CHECK: DIVERGENT: i32 %arg6
13 define amdgpu_ps void @test_amdgpu_ps([4 x <16 x i8>] addrspace(4)* byval %arg0, float inreg %arg1, i32 inreg %arg2, <2 x i32> %arg3, <3 x i32> %arg4, float %arg5, i32 %arg6) #0 {
17 ; CHECK-LABEL: Printing analysis 'Legacy Divergence Analysis' for function 'test_amdgpu_kernel':
25 define amdgpu_kernel void @test_amdgpu_kernel([4 x <16 x i8>] addrspace(4)* byval %arg0, float inreg %arg1, i32 inreg %arg2, <2 x i32> %arg3, <3 x i32> %arg4, float %arg5, i32 %arg6) #0 {
29 ; CHECK-LABEL: Printing analysis 'Legacy Divergence Analysis' for function 'test_c':
37 define void @test_c([4 x <16 x i8>] addrspace(4)* byval %arg0, float inreg %arg1, i32 inreg %arg2, <2 x i32> %arg3, <3 x i32> %arg4, float %arg5, i32 %arg6) #0 {
41 attributes #0 = { nounwind }