File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252
5353 # byref struct params should be ptr addrspace(4) in kernel IR
5454 @test @filecheck begin
55- check " CHECK: define amdgpu_kernel void @_Z6kernel8MyStruct(ptr addrspace(4)"
55+ check " TYPED: define amdgpu_kernel void @_Z6kernel8MyStruct({{.*}} addrspace(4)*"
56+ check " OPAQUE: define amdgpu_kernel void @_Z6kernel8MyStruct(ptr addrspace(4)"
5657 GCN. code_llvm (mod. kernel, Tuple{mod. MyStruct}; dump_module= true , kernel= true )
5758 end
5859
106107 @test @filecheck begin
107108 check " CHECK: define amdgpu_kernel void"
108109 check " CHECK-SAME: double"
109- check " CHECK-SAME: ptr addrspace(4)"
110+ check " TYPED-SAME: {{.*}} addrspace(4)*"
111+ check " OPAQUE-SAME: ptr addrspace(4)"
110112 check " CHECK-SAME: {{(i64|ptr)}}"
111113 GCN. code_llvm (mod. kernel, Tuple{Float64, mod. Params, Ptr{Float64}};
112114 dump_module= true , kernel= true )
259261 end
260262
261263 @test @filecheck begin
264+ check " CHECK: .amdhsa_kernel _Z5entry5Int64"
262265 check " CHECK-NOT: .amdhsa_kernel {{(julia|j)_nonentry_[0-9]+}}"
263266 check " CHECK: .type {{(julia|j)_nonentry_[0-9]+}},@function"
264- check " CHECK: .amdhsa_kernel _Z5entry5Int64"
265267 GCN. code_native (mod. entry, Tuple{Int64}; dump_module= true , kernel= true )
266268 end
267269end
You can’t perform that action at this time.
0 commit comments