xref: /llvm-project/llvm/test/CodeGen/AMDGPU/half-alloca-promotion.ll (revision b4df0da9e8421c8026bd09980b8a6acd7a6ce8c9)
1*b4df0da9SShilei Tian; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -passes="amdgpu-promote-alloca-to-vector" -o - %s
2*b4df0da9SShilei Tian; We don't really need to check anything here because with expensive check, this
3*b4df0da9SShilei Tian; test case crashes. The correctness of the pass is beyond the scope.
4*b4df0da9SShilei Tian
5*b4df0da9SShilei Tiandefine fastcc void @foo() {
6*b4df0da9SShilei Tianentry:
7*b4df0da9SShilei Tian  %det = alloca [4 x i32], align 16, addrspace(5)
8*b4df0da9SShilei Tian  %trkltPosTmpYZ = alloca [2 x float], align 4, addrspace(5)
9*b4df0da9SShilei Tian  %trkltCovTmp = alloca [3 x float], align 4, addrspace(5)
10*b4df0da9SShilei Tian  ret void
11*b4df0da9SShilei Tian}
12