1; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs< %s 2; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs< %s 3 4; This tests for a bug that caused a crash in 5; AMDGPUDAGToDAGISel::SelectMUBUFScratch() which is used for selecting 6; scratch loads and stores. 7; CHECK-LABEL: {{^}}store_vector_ptrs: 8define void @store_vector_ptrs(<4 x i32*>* %out, <4 x [1024 x i32]*> %array) nounwind { 9 %p = getelementptr [1024 x i32], <4 x [1024 x i32]*> %array, <4 x i16> zeroinitializer, <4 x i16> <i16 16, i16 16, i16 16, i16 16> 10 store <4 x i32*> %p, <4 x i32*>* %out 11 ret void 12} 13