diff --git a/test/interop_tests.jl b/test/interop_tests.jl index 9e7e7b22..56f76f33 100644 --- a/test/interop_tests.jl +++ b/test/interop_tests.jl @@ -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