2017-08-08 02:30:35 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs< %s
|
2015-01-28 01:27:15 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs< %s
|
2013-10-09 02:06:36 +08:00
|
|
|
|
2014-08-22 04:40:58 +08:00
|
|
|
; This tests for a bug that caused a crash in
|
|
|
|
; AMDGPUDAGToDAGISel::SelectMUBUFScratch() which is used for selecting
|
|
|
|
; scratch loads and stores.
|
2014-10-02 01:15:17 +08:00
|
|
|
; CHECK-LABEL: {{^}}store_vector_ptrs:
|
2018-02-03 00:07:16 +08:00
|
|
|
define amdgpu_kernel void @store_vector_ptrs(<4 x i32 addrspace(5)*> addrspace(5)* %out, <4 x [1024 x i32] addrspace(5)*> %array) nounwind {
|
|
|
|
%p = getelementptr [1024 x i32], <4 x [1024 x i32] addrspace(5)*> %array, <4 x i16> zeroinitializer, <4 x i16> <i16 16, i16 16, i16 16, i16 16>
|
|
|
|
store <4 x i32 addrspace(5)*> %p, <4 x i32 addrspace(5)*> addrspace(5)* %out
|
2013-10-09 02:06:36 +08:00
|
|
|
ret void
|
2014-08-22 04:40:58 +08:00
|
|
|
}
|