@@ -11,12 +11,12 @@ sink_gcn(i) = sink(i, Val(5))
1111 end
1212
1313 @test @filecheck begin
14- check " CHECK-NOT: amdgpu_kernel"
14+ @check_not " amdgpu_kernel"
1515 GCN. code_llvm(mod. kernel, Tuple{}; dump_module= true )
1616 end
1717
1818 @test @filecheck begin
19- check" CHECK: amdgpu_kernel"
19+ @ check " amdgpu_kernel"
2020 GCN. code_llvm(mod. kernel, Tuple{}; dump_module= true , kernel= true )
2121 end
2222end
3030 end
3131
3232 @test @filecheck begin
33- check " CHECK-NOT: {{julia_throw_boundserror_[0-9]+}}"
34- check" CHECK: @gpu_report_exception"
35- check" CHECK: @gpu_signal_exception"
33+ @check_not " {{julia_throw_boundserror_[0-9]+}}"
34+ @ check " @gpu_report_exception"
35+ @ check " @gpu_signal_exception"
3636 GCN. code_llvm(mod. kernel, Tuple{})
3737 end
3838end
6363 end
6464
6565 @test @filecheck begin
66- check " CHECK-LABEL: {{(julia|j)_kernel_[0-9]+}}:"
67- check" CHECK: s_cbranch_exec"
68- check" CHECK: s_trap 2"
66+ @check_label " {{(julia|j)_kernel_[0-9]+}}:"
67+ @ check " s_cbranch_exec"
68+ @ check " s_trap 2"
6969 GCN. code_native(mod. kernel, Tuple{})
7070 end
7171end
8383 end
8484
8585 @test @filecheck begin
86- check " CHECK-LABEL: {{(julia|j)_parent_[0-9]+}}:"
87- check" CHECK: s_add_u32 {{.+}} {{(julia|j)_child_[0-9]+}}@rel32@"
88- check" CHECK: s_addc_u32 {{.+}} {{(julia|j)_child_[0-9]+}}@rel32@"
86+ @check_label " {{(julia|j)_parent_[0-9]+}}:"
87+ @ check " s_add_u32 {{.+}} {{(julia|j)_child_[0-9]+}}@rel32@"
88+ @ check " s_addc_u32 {{.+}} {{(julia|j)_child_[0-9]+}}@rel32@"
8989 GCN. code_native(mod. parent, Tuple{Int64}; dump_module= true )
9090 end
9191end
101101 end
102102
103103 @test @filecheck begin
104- check " CHECK-NOT: .amdhsa_kernel {{(julia|j)_nonentry_[0-9]+}}"
105- check" CHECK: .type {{(julia|j)_nonentry_[0-9]+}},@function"
106- check" CHECK: .amdhsa_kernel _Z5entry5Int64"
104+ @check_not " .amdhsa_kernel {{(julia|j)_nonentry_[0-9]+}}"
105+ @ check " .type {{(julia|j)_nonentry_[0-9]+}},@function"
106+ @ check " .amdhsa_kernel _Z5entry5Int64"
107107 GCN. code_native(mod. entry, Tuple{Int64}; dump_module= true , kernel= true )
108108 end
109109end
@@ -126,12 +126,12 @@ end
126126 end
127127
128128 @test @filecheck begin
129- check" CHECK: .type {{(julia|j)_child_[0-9]+}},@function"
129+ @ check " .type {{(julia|j)_child_[0-9]+}},@function"
130130 GCN. code_native(mod. parent1, Tuple{Int}; dump_module= true )
131131 end
132132
133133 @test @filecheck begin
134- check" CHECK: .type {{(julia|j)_child_[0-9]+}},@function"
134+ @ check " .type {{(julia|j)_child_[0-9]+}},@function"
135135 GCN. code_native(mod. parent2, Tuple{Int}; dump_module= true )
136136 end
137137end
@@ -155,14 +155,14 @@ end
155155 end
156156
157157 @test @filecheck begin
158- check " CHECK-DAG: .type {{(julia|j)_child1_[0-9]+}},@function"
159- check " CHECK-DAG: .type {{(julia|j)_child2_[0-9]+}},@function"
158+ @check_dag " .type {{(julia|j)_child1_[0-9]+}},@function"
159+ @check_dag " .type {{(julia|j)_child2_[0-9]+}},@function"
160160 GCN. code_native(mod. parent1, Tuple{Int}; dump_module= true )
161161 end
162162
163163 @test @filecheck begin
164- check " CHECK-DAG: .type {{(julia|j)_child1_[0-9]+}},@function"
165- check " CHECK-DAG: .type {{(julia|j)_child2_[0-9]+}},@function"
164+ @check_dag " .type {{(julia|j)_child1_[0-9]+}},@function"
165+ @check_dag " .type {{(julia|j)_child2_[0-9]+}},@function"
166166 GCN. code_native(mod. parent2, Tuple{Int}; dump_module= true )
167167 end
168168end
182182 end
183183
184184 @test @filecheck begin
185- check " CHECK-LABEL: {{(julia|j)_kernel_[0-9]+}}:"
186- check " CHECK-NOT: jl_throw"
187- check " CHECK-NOT: jl_invoke"
185+ @check_label " {{(julia|j)_kernel_[0-9]+}}:"
186+ @check_not " jl_throw"
187+ @check_not " jl_invoke"
188188 GCN. code_native(mod. kernel, Tuple{Ptr{Int32}})
189189 end
190190end
@@ -234,11 +234,11 @@ false && @testset "GC and TLS lowering" begin
234234 end
235235
236236 @test @filecheck begin
237- check " CHECK-NOT: jl_push_gc_frame"
238- check " CHECK-NOT: jl_pop_gc_frame"
239- check " CHECK-NOT: jl_get_gc_frame_slot"
240- check " CHECK-NOT: jl_new_gc_frame"
241- check" CHECK: gpu_gc_pool_alloc"
237+ @check_not " jl_push_gc_frame"
238+ @check_not " jl_pop_gc_frame"
239+ @check_not " jl_get_gc_frame_slot"
240+ @check_not " jl_new_gc_frame"
241+ @ check " gpu_gc_pool_alloc"
242242 GCN. code_native(mod. kernel, Tuple{Int})
243243 end
244244
@@ -256,7 +256,7 @@ false && @testset "GC and TLS lowering" begin
256256 end
257257
258258 @test @filecheck begin
259- check " CHECK-NOT: gpu_gc_pool_alloc"
259+ @check_not " gpu_gc_pool_alloc"
260260 GCN. code_native(ref_kernel, Tuple{Ptr{Int64}, Int})
261261 end
262262end
275275 end
276276
277277 @test @filecheck begin
278- check " CHECK-LABEL: define void @{{(julia|j)_kernel_[0-9]+}}"
279- check" CHECK: jl_box_float32"
278+ @check_label " define void @{{(julia|j)_kernel_[0-9]+}}"
279+ @ check " jl_box_float32"
280280 GCN. code_llvm(mod. kernel, Tuple{Float32,Ptr{Float32}})
281281 end
282282 GCN. code_native(devnull , mod. kernel, Tuple{Float32,Ptr{Float32}})
0 commit comments