1; RUN: opt -mtriple=amdgcn-- -analyze -divergence %s | FileCheck %s
2
3; CHECK: DIVERGENT: %swizzle = call i32 @llvm.amdgcn.ds.swizzle(i32 %src, i32 100) #0
4define amdgpu_kernel void @ds_swizzle(i32 addrspace(1)* %out, i32 %src) #0 {
5  %swizzle = call i32 @llvm.amdgcn.ds.swizzle(i32 %src, i32 100) #0
6  store i32 %swizzle, i32 addrspace(1)* %out, align 4
7  ret void
8}
9
10declare i32 @llvm.amdgcn.ds.swizzle(i32, i32) #1
11
12attributes #0 = { nounwind convergent }
13attributes #1 = { nounwind readnone convergent }
14