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':
35 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 {
39 ; CHECK-LABEL: for function 'test_amdgpu_cs_chain':
40 ; CHECK-DAG: DIVERGENT: ptr addrspace(4) %arg0
41 ; CHECK-DAG: DIVERGENT: <2 x i32> %arg3
42 ; CHECK-DAG: DIVERGENT: <3 x i32> %arg4
43 ; CHECK-DAG: DIVERGENT: float %arg5
44 ; CHECK-DAG: DIVERGENT: i32 %arg6
45 ; CHECK-NOT: DIVERGENT
46 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 {
50 ; CHECK-LABEL: for function 'test_amdgpu_cs_chain_preserve':
51 ; CHECK-DAG: DIVERGENT: ptr addrspace(4) %arg0
52 ; CHECK-DAG: DIVERGENT: <2 x i32> %arg3
53 ; CHECK-DAG: DIVERGENT: <3 x i32> %arg4
54 ; CHECK-DAG: DIVERGENT: float %arg5
55 ; CHECK-DAG: DIVERGENT: i32 %arg6
56 ; CHECK-NOT: DIVERGENT
57 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 {
60 attributes #0 = { nounwind }