blob: ecea043c26063cd3bffb25737950f3f1a4491f7b [file]
; RUN: llc -mtriple=amdgpu6.00 < %s
; RUN: llc -mtriple=amdgpu8.02 < %s
; This tests for a bug that caused a crash in
; AMDGPUDAGToDAGISel::SelectMUBUFScratch() which is used for selecting
; scratch loads and stores.
; CHECK-LABEL: {{^}}store_vector_ptrs:
define amdgpu_kernel void @store_vector_ptrs(ptr addrspace(5) %out, <4 x ptr addrspace(5)> %array) nounwind {
%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>
store <4 x ptr addrspace(5)> %p, ptr addrspace(5) %out
ret void
}