Skip to content

Commit

Permalink
Adapt test regexes to naming change.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Sep 4, 2023
1 parent 64438ec commit a8aa487
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/interop_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,15 @@ end
ir = sprint(io->code_llvm(io, LLVM.Interop.addrspacecast, Tuple{Type{T_dest}, typeof(ptr)}))
if supports_typed_ptrs
if AS_dest == 3
@test contains(ir, r"addrspacecast i8 addrspace\(4\)\* %\d+ to i8 addrspace\(3\)\*")
@test contains(ir, r"addrspacecast i8 addrspace\(4\)\* %.+? to i8 addrspace\(3\)\*")
else
@test !contains(ir, r"addrspacecast i8 addrspace\(4\)\* %\d+ to i8 addrspace\(3\)\*")
@test !contains(ir, r"addrspacecast i8 addrspace\(4\)\* %.+? to i8 addrspace\(3\)\*")
end
else
if AS_dest == 3
@test contains(ir, r"addrspacecast ptr addrspace\(4\) %\d+ to ptr addrspace\(3\)")
@test contains(ir, r"addrspacecast ptr addrspace\(4\) %.+? to ptr addrspace\(3\)")
else
@test !contains(ir, r"addrspacecast ptr addrspace\(4\) %\d+ to ptr addrspace\(3\)")
@test !contains(ir, r"addrspacecast ptr addrspace\(4\) %.+? to ptr addrspace\(3\)")
end
end
end
Expand Down

0 comments on commit a8aa487

Please sign in to comment.