13 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=tahiti < %s2; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s3 4; This tests for a bug that caused a crash in5; AMDGPUDAGToDAGISel::SelectMUBUFScratch() which is used for selecting6; scratch loads and stores.7; CHECK-LABEL: {{^}}store_vector_ptrs:8define amdgpu_kernel void @store_vector_ptrs(ptr addrspace(5) %out, <4 x ptr addrspace(5)> %array) nounwind {9 %p = getelementptr [1024 x i32], <4 x ptr addrspace(5)> %array, <4 x i16> zeroinitializer, <4 x i16> <i16 16, i16 16, i16 16, i16 16>10 store <4 x ptr addrspace(5)> %p, ptr addrspace(5) %out11 ret void12}13