[MachineScheduler] Fix physreg dependencies of ExitSU (#123541)
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / store-vector-ptrs.ll
blob85f76a0659022a5fc770673ce48c6c1f4bad78b9
1 ; RUN: llc -mtriple=amdgcn -mcpu=tahiti -verify-machineinstrs< %s
2 ; RUN: llc -mtriple=amdgcn -mcpu=tonga -verify-machineinstrs< %s
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:
8 define 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) %out
11   ret void