diff --git a/test/native/precompile.jl b/test/native/precompile.jl index d4c0a7ac..1d186820 100644 --- a/test/native/precompile.jl +++ b/test/native/precompile.jl @@ -13,7 +13,7 @@ precompile_test_harness("Inference caching") do load_path A[1] = x return end - + function kernel_w_global(A, x, sym) if sym == :A A[1] = x @@ -76,7 +76,7 @@ precompile_test_harness("Inference caching") do load_path @test check_presence(square_mi, token) # check that identity survived - @test check_presence(identity_mi, token) broken=VERSION>=v"1.12.0-DEV.1268" + @test check_presence(identity_mi, token) broken=(v"1.12.0-DEV.1268" <= VERSION < v"1.12.5" || VERSION>=v"1.13.0-") GPUCompiler.clear_disk_cache!() @test GPUCompiler.disk_cache_enabled() == false diff --git a/test/ptx/precompile.jl b/test/ptx/precompile.jl index e0739df0..4e669260 100644 --- a/test/ptx/precompile.jl +++ b/test/ptx/precompile.jl @@ -49,6 +49,6 @@ precompile_test_harness("Inference caching") do load_path @test check_presence(kernel_mi, token) # check that identity survived - @test check_presence(identity_mi, token) broken=VERSION>=v"1.12.0-DEV.1268" + @test check_presence(identity_mi, token) broken=(v"1.12.0-DEV.1268" <= VERSION < v"1.12.5" || VERSION>=v"1.13.0-") end end diff --git a/test/spirv.jl b/test/spirv.jl index e8903140..1384a73c 100644 --- a/test/spirv.jl +++ b/test/spirv.jl @@ -133,14 +133,16 @@ end # TODO: should structs of `NTuple{VecElement{T}}` be passed by value instead of sret? check"CHECK-NOT: i128" check"CHECK-LABEL: define void @{{(julia|j)_kernel_[0-9]+}}" - @static VERSION >= v"1.12" && check"CHECK: alloca <2 x i64>, align 16" + @static v"1.12" <= VERSION < v"1.12.5" && check"CHECK: alloca <2 x i64>, align 16" + @static VERSION >= v"1.12.5" && check"CHECK: alloca [2 x i64], align 16" SPIRV.code_llvm(mod.kernel, NTuple{2, mod.Vec{4, Float32}}; backend, dump_module=true) end @test @filecheck begin check"CHECK-NOT: i128" check"CHECK-LABEL: define void @{{(julia|j)_kernel_[0-9]+}}" - @static VERSION >= v"1.12" && check"CHECK: alloca [2 x <2 x i64>], align 16" + @static v"1.12" <= VERSION < v"1.12.5" && check"CHECK: alloca [2 x <2 x i64>], align 16" + @static VERSION >= v"1.12.5" && check"CHECK: alloca [4 x i64], align 16" SPIRV.code_llvm(mod.kernel, NTuple{2, mod.Vec{8, Float32}}; backend, dump_module=true) end end