brintos

brintos / llvm-project-archived public Read only

0
0
Text · 578 B · 4687b83 Raw
17 lines · plain
1; RUN: llc -global-isel -new-reg-bank-select -mtriple=amdgcn-mesa-mesa3d < %s | FileCheck -check-prefix=GCN %s2 3; FIXME: Dropped parts from original test4 5; GCN-LABEL: {{^}}test_ps:6; GCN: s_load_dword s{{[0-9]+}}, s[0:1], 0x07define amdgpu_ps i32 @test_ps() #1 {8  %implicit_buffer_ptr = call ptr addrspace(4) @llvm.amdgcn.implicit.buffer.ptr()9  %value = load volatile i32, ptr addrspace(4) %implicit_buffer_ptr10  ret i32 %value11}12 13declare ptr addrspace(4) @llvm.amdgcn.implicit.buffer.ptr() #014 15attributes #0 = { nounwind readnone speculatable }16attributes #1 = { nounwind }17