Skip to content

Commit 0f54ca5

Browse files
committed
test: add GenericMemoryRef address space regression test
Add test case for LLVM IR generation bug where stores to GenericMemoryRef incorrectly use addrspace(10) instead of addrspace(11) in bounds checking code, causing assertion failures in LLVM optimization passes. This reproduces the issue described in the gist where bounds checking generates incorrect address space casts in the LLVM IR.
1 parent 20e88b5 commit 0f54ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/llvmpasses/memoryref-addrspace.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ end
1818
# CHECK-NOT: store {{.*}} addrspace(10) {{.*}}GenericMemoryRef
1919
# CHECK: call void @ijl_bounds_error_int
2020

21-
emit(bf, Tuple{Int, Vector{Float64}})
21+
emit(bf, Tuple{Int, Vector{Float64}})

0 commit comments

Comments
 (0)