summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2018-09-11 04:00:41 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2018-09-11 04:00:41 +0000
commit99c780159d5253f271e1e04facdb5bc07f4fc90c (patch)
treef1133b16212d50b8cc71da674700c03bd9ea2767
parente6413919cec6ac5e50d85103ef27a9b0c6ed57b0 (diff)
downloadbcm5719-llvm-99c780159d5253f271e1e04facdb5bc07f4fc90c.tar.gz
bcm5719-llvm-99c780159d5253f271e1e04facdb5bc07f4fc90c.zip
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
-rw-r--r--llvm/test/CodeGen/AMDGPU/amdgpu-alias-analysis.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/amdgpu-alias-analysis.ll b/llvm/test/CodeGen/AMDGPU/amdgpu-alias-analysis.ll
index 35614634e76..08e7883023d 100644
--- a/llvm/test/CodeGen/AMDGPU/amdgpu-alias-analysis.ll
+++ b/llvm/test/CodeGen/AMDGPU/amdgpu-alias-analysis.ll
@@ -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
+}
OpenPOWER on IntegriCloud