1 ; RUN: opt -mtriple amdgcn-- -passes='print<uniformity>' -disable-output %s 2>&1 | FileCheck %s
3 ; CHECK-LABEL: for function 'test_amdgpu_ps':
4 ; CHECK-DAG: DIVERGENT: ptr addrspace(4) %arg0
5 ; CHECK-DAG: DIVERGENT: <2 x i32> %arg3
6 ; CHECK-DAG: DIVERGENT: <3 x i32> %arg4
7 ; CHECK-DAG: DIVERGENT: float %arg5
8 ; CHECK-DAG: DIVERGENT: i32 %arg6
11 define amdgpu_ps void @test_amdgpu_ps(ptr addrspace(4) byref([4 x <16 x i8>]) %arg0, float inreg %arg1, i32 inreg %arg2, <2 x i32> %arg3, <3 x i32> %arg4, float %arg5, i32 %arg6) #0 {
15 ; CHECK-LABEL: for function 'test_amdgpu_kernel':
23 define amdgpu_kernel void @test_amdgpu_kernel(ptr addrspace(4) byref([4 x <16 x i8>]) %arg0, float inreg %arg1, i32 inreg %arg2, <2 x i32> %arg3, <3 x i32> %arg4, float %arg5, i32 %arg6) #0 {
27 ; CHECK-LABEL: for function 'test_c':
33 define void @test_c(ptr addrspace(5) byval([4 x <16 x i8>]) %arg0, float inreg %arg1, i32 inreg %arg2, <2 x i32> %arg3, <3 x i32> %arg4, float %arg5, i32 %arg6) #0 {
37 ; CHECK-LABEL: for function 'test_amdgpu_cs_chain':
38 ; CHECK-DAG: DIVERGENT: ptr addrspace(4) %arg0
39 ; CHECK-DAG: DIVERGENT: <2 x i32> %arg3
40 ; CHECK-DAG: DIVERGENT: <3 x i32> %arg4
41 ; CHECK-DAG: DIVERGENT: float %arg5
42 ; CHECK-DAG: DIVERGENT: i32 %arg6
43 ; CHECK-NOT: DIVERGENT
44 define amdgpu_cs_chain void @test_amdgpu_cs_chain(ptr addrspace(4) byref([4 x <16 x i8>]) %arg0, float inreg %arg1, i32 inreg %arg2, <2 x i32> %arg3, <3 x i32> %arg4, float %arg5, i32 %arg6) #0 {
48 ; CHECK-LABEL: for function 'test_amdgpu_cs_chain_preserve':
49 ; CHECK-DAG: DIVERGENT: ptr addrspace(4) %arg0
50 ; CHECK-DAG: DIVERGENT: <2 x i32> %arg3
51 ; CHECK-DAG: DIVERGENT: <3 x i32> %arg4
52 ; CHECK-DAG: DIVERGENT: float %arg5
53 ; CHECK-DAG: DIVERGENT: i32 %arg6
54 ; CHECK-NOT: DIVERGENT
55 define amdgpu_cs_chain_preserve void @test_amdgpu_cs_chain_preserve(ptr addrspace(4) byref([4 x <16 x i8>]) %arg0, float inreg %arg1, i32 inreg %arg2, <2 x i32> %arg3, <3 x i32> %arg4, float %arg5, i32 %arg6) #0 {
58 attributes #0 = { nounwind }