brintos

brintos / llvm-project-archived public Read only

0
0
Text · 489 B · 74f15ac Raw
10 lines · plain
1; REQUIRES: asserts2; RUN: not --crash llc -mtriple=amdgcn -mcpu=gfx900 < %s3; RUN: not --crash llc -global-isel -mtriple=amdgcn -mcpu=gfx900 < %s4 5define amdgpu_ps ptr addrspace(8) @basic_raw_buffer(ptr addrspace(3) inreg %p) {6  %rsrc = call ptr addrspace(8) @llvm.amdgcn.make.buffer.rsrc.p8.p3(ptr addrspace(3) %p, i16 0, i64 1234, i32 5678)7  ret ptr addrspace(8) %rsrc8}9declare ptr addrspace(8) @llvm.amdgcn.make.buffer.rsrc.p8.p3(ptr addrspace(3) nocapture readnone, i16, i64, i32)10