diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-10-15 14:59:32 -0400 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2014-01-28 14:22:13 -0500 |
commit | 91f425dec8a689aabeb626fe5b46b698c9f2ae0d (patch) | |
tree | 028bf8e215a668590be85977353f1856e800ffe5 | |
parent | 9de03fb6d1cd95684688a7a15953d9bad3fd22d1 (diff) |
SelectionDAG: Use the correct pointer width in SelectionDAG::InferPtrAlignment()
-rw-r--r-- | test/CodeGen/R600/address-space.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/R600/address-space.ll b/test/CodeGen/R600/address-space.ll index 1fc616a4ed4..48e8666022a 100644 --- a/test/CodeGen/R600/address-space.ll +++ b/test/CodeGen/R600/address-space.ll @@ -29,3 +29,12 @@ bb34: } +; Test for a crash in SelectionDAG::InferPtrAlignment() +; CHECK-LABEL: @integral_cols +; CHECK: DS_READ_B32 +define void @integral_cols(i32 addrspace(1)* %out) { +entry: + %0 = load i32 addrspace(3)* getelementptr inbounds ([2 x [264 x i32]] addrspace(3)* @local.mem, i32 0, i32 1, i32 262), align 16 + store i32 %0, i32 addrspace(1)* %out + ret void +} |