brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · d9c64a3 Raw
36 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=verde < %s | FileCheck %s2; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck %s3 4; This is used to crash in LiveIntervalAnalysis via SILoadStoreOptimizer5; while fixing up the merge of two ds_write instructions.6 7@tess_lds = external addrspace(3) global [8192 x i32]8 9; CHECK-LABEL: {{^}}main:10; CHECK-DAG: ds_write_b3211; CHECK-DAG: ds_write_b3212; CHECK-DAG: v_mov_b32_e32 v1, v013; CHECK: tbuffer_store_format_xyzw v[0:3],14define amdgpu_vs void @main(i32 inreg %arg) {15main_body:16  %tmp = load float, ptr addrspace(3) poison, align 417  %tmp1 = load float, ptr addrspace(3) poison, align 418  store float %tmp, ptr addrspace(3) null, align 419  %tmp2 = bitcast float %tmp to i3220  %tmp3 = add nuw nsw i32 0, 121  %tmp4 = zext i32 %tmp3 to i6422  %tmp5 = getelementptr [8192 x i32], ptr addrspace(3) @tess_lds, i64 0, i64 %tmp423  store float %tmp1, ptr addrspace(3) %tmp5, align 424  %tmp7 = bitcast float %tmp1 to i3225  %tmp8 = insertelement <4 x i32> poison, i32 %tmp2, i32 026  %tmp9 = insertelement <4 x i32> %tmp8, i32 %tmp7, i32 127  %tmp10 = insertelement <4 x i32> %tmp9, i32 poison, i32 228  %tmp11 = insertelement <4 x i32> %tmp10, i32 poison, i32 329  call void @llvm.amdgcn.struct.ptr.tbuffer.store.v4i32(<4 x i32> %tmp11, ptr addrspace(8) poison, i32 0, i32 0, i32 %arg, i32 78, i32 3) #230  ret void31}32 33declare void @llvm.amdgcn.struct.ptr.tbuffer.store.v4i32(<4 x i32>, ptr addrspace(8), i32, i32, i32, i32 immarg, i32 immarg) #034 35attributes #0 = { nounwind willreturn writeonly }36