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