Skip to content

Commit bea10a2

Browse files
committed
only look for <2 x i64> allocas on 1.12+
1 parent 35fc31d commit bea10a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/spirv.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ end
133133
# TODO: should structs of `NTuple{VecElement{T}}` be passed by value instead of sret?
134134
check"CHECK-NOT: i128"
135135
check"CHECK-LABEL: define void @{{(julia|j)_kernel_[0-9]+}}"
136-
check"CHECK: alloca <2 x i64>, align 16"
136+
@static VERSION >= v"1.12" && check"CHECK: alloca <2 x i64>, align 16"
137137
SPIRV.code_llvm(mod.kernel, NTuple{2, mod.Vec{4, Float32}}; backend, dump_module=true)
138138
end
139139

140140
@test @filecheck begin
141141
check"CHECK-NOT: i128"
142142
check"CHECK-LABEL: define void @{{(julia|j)_kernel_[0-9]+}}"
143-
check"CHECK: alloca [2 x <2 x i64>], align 16"
143+
@static VERSION >= v"1.12" && check"CHECK: alloca [2 x <2 x i64>], align 16"
144144
SPIRV.code_llvm(mod.kernel, NTuple{2, mod.Vec{8, Float32}}; backend, dump_module=true)
145145
end
146146
end

0 commit comments

Comments
 (0)