brintos

brintos / llvm-project-archived public Read only

0
0
Text · 955 B · 7871ac7 Raw
25 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=gfx900 < %s | FileCheck --check-prefix=GCN %s2 3; This is used to crash due to mismatch of MMO target flags when folding4; a LOAD SDNodes with different flags.5 6; GCN-LABEL: {{^}}test_load_folding_mmo_flags:7; GCN: global_load_dwordx28define amdgpu_kernel void @test_load_folding_mmo_flags(ptr addrspace(1) %arg) {9entry:10  %id = tail call i32 @llvm.amdgcn.workitem.id.x()11  %arrayidx = getelementptr inbounds <2 x float>, ptr addrspace(1) %arg, i32 %id12  %i3 = load float, ptr addrspace(1) %arrayidx, align 413  %idx = getelementptr inbounds <2 x float>, ptr addrspace(1) %arrayidx, i64 0, i32 114  %i4 = load float, ptr addrspace(1) %idx, align 415  %i5 = load i64, ptr addrspace(1) %arrayidx, align 4, !amdgpu.noclobber !016  store i64 %i5, ptr addrspace(1) poison, align 417  %mul = fmul float %i3, %i418  store float %mul, ptr addrspace(1) poison, align 419  unreachable20}21 22declare i32 @llvm.amdgcn.workitem.id.x()23 24!0 = !{}25