bolt/deps/llvm-18.1.8/llvm/test/CodeGen/AMDGPU/store-vector-ptrs.ll
2025-02-14 19:21:04 +01:00

12 lines
632 B
LLVM

; RUN: llc -mtriple=amdgcn -mcpu=tahiti -verify-machineinstrs< %s
; RUN: llc -mtriple=amdgcn -mcpu=tonga -verify-machineinstrs< %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
}