brintos

brintos / llvm-project-archived public Read only

0
0
Text · 527 B · 18b3b21 Raw
14 lines · plain
1; RUN: opt -S -mtriple=amdgcn-mesa-mesa3d -mcpu=tahiti -passes=infer-address-spaces %s | FileCheck %s2 3; Make sure addrspace(0) is still treated as flat on targets without4; flat instructions. It's still flat, it just doesn't work.5 6; CHECK-LABEL: @load_flat_from_global(7; CHECK-NEXT: %tmp1 = load float, ptr addrspace(1) %ptr8; CHECK-NEXT: ret float %tmp19define float @load_flat_from_global(ptr addrspace(1) %ptr) #0 {10  %tmp0 = addrspacecast ptr addrspace(1) %ptr to ptr11  %tmp1 = load float, ptr %tmp012  ret float %tmp113}14