1 ; RUN: llc -global-isel=0 -march=amdgcn -mcpu=bonaire -stop-before=machine-scheduler < %s | FileCheck -enable-var-scope -check-prefixes=MIR %s
2 ; RUN: llc -global-isel=1 -march=amdgcn -mcpu=bonaire -stop-before=machine-scheduler < %s | FileCheck -enable-var-scope -check-prefixes=MIR %s
4 ; Make sure !noalias metadata is passed through from target intrinsics
6 ; MIR-LABEL: name: ds_append_noalias
7 ; MIR: DS_APPEND {{.*}} :: (load store (s32) on %{{.*}}, !noalias !{{[0-9]+}}, addrspace 3)
8 define amdgpu_kernel void @ds_append_noalias() {
9 %lds = load ptr addrspace(3), ptr addrspace(1) null
10 %val = call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) %lds, i1 false), !noalias !0
11 store i32 %val, ptr addrspace(1) null, align 4
15 declare i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) nocapture, i1 immarg) #0
17 attributes #0 = { argmemonly convergent nounwind willreturn }
20 !1 = distinct !{!1, !2}