forked from OSchip/llvm-project
AMDGPU: Don't error on out of bounds address spaces
We should never abort on valid IR. The most reasonable interpretation of an arbitrary address space pointer is probably some kind of special subset of global memory. llvm-svn: 341894
This commit is contained in:
parent
e6413919ce
commit
99c780159d
|
@ -31,3 +31,22 @@ define void @test_constant_32bit_vs_constant(i8 addrspace(6)* %p, i8 addrspace(4
|
|||
ret void
|
||||
}
|
||||
|
||||
; CHECK: MayAlias: i8 addrspace(999)* %p0, i8* %p
|
||||
define void @test_0_999(i8 addrspace(0)* %p, i8 addrspace(999)* %p0) {
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: MayAlias: i8 addrspace(999)* %p, i8* %p1
|
||||
define void @test_999_0(i8 addrspace(999)* %p, i8 addrspace(0)* %p1) {
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: MayAlias: i8 addrspace(1)* %p, i8 addrspace(999)* %p1
|
||||
define void @test_1_999(i8 addrspace(1)* %p, i8 addrspace(999)* %p1) {
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: MayAlias: i8 addrspace(1)* %p1, i8 addrspace(999)* %p
|
||||
define void @test_999_1(i8 addrspace(999)* %p, i8 addrspace(1)* %p1) {
|
||||
ret void
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue