340340end
341341
342342@testset " always_inline" begin
343- # XXX : broken by JuliaLang/julia#51599, see JuliaGPU/GPUCompiler.jl#527
343+ # XXX : broken by JuliaLang/julia#51599, see JuliaGPU/GPUCompiler.jl#527.
344+ # yet somehow this works on 1.12?
345+ broken = VERSION >= v" 1.13-"
346+
344347 mod = @eval module $ (gensym())
345348 import .. sink
346349 expensive(x) = $ (foldl((e, _) -> :($ sink($ e) + $ sink(x)), 1 : 100 ; init= :x))
@@ -359,20 +362,20 @@ end
359362 Native. code_llvm(mod. g, Tuple{Int64}; dump_module= true , kernel= true )
360363 end
361364
362- @test @filecheck begin
365+ @test @filecheck( begin
363366 check" CHECK-NOT: @{{(julia|j)_expensive_[0-9]+}}"
364367 Native. code_llvm(mod. g, Tuple{Int64}; dump_module= true , kernel= true , always_inline= true )
365- end
368+ end ) broken = broken
366369
367370 @test @filecheck begin
368371 check" CHECK: @{{(julia|j)_expensive_[0-9]+}}"
369372 Native. code_llvm(mod. h, Tuple{Int64}; dump_module= true , kernel= true )
370373 end
371374
372- @test @filecheck begin
375+ @test @filecheck( begin
373376 check" CHECK-NOT: @{{(julia|j)_expensive_[0-9]+}}"
374377 Native. code_llvm(mod. h, Tuple{Int64}; dump_module= true , kernel= true , always_inline= true )
375- end
378+ end ) broken = broken
376379end
377380
378381@testset " function attributes" begin
659662 a[1 ] = a[1 ]^ 2
660663 return
661664 end
662-
665+
663666 function dkernel(a)
664667 ptr = Enzyme. deferred_codegen(typeof(kernel), Tuple{Vector{Float64}})
665668 ccall(ptr, Cvoid, (Vector{Float64},), a)
0 commit comments