1; RUN: opt -mtriple=amdgcn-- -amdgpu-use-legacy-divergence-analysis -analyze -divergence %s | FileCheck %s 2 3; Test that we consider loads from flat and private addrspaces to be divergent. 4 5; CHECK: DIVERGENT: %val = load i32, i32* %flat, align 4 6define amdgpu_kernel void @flat_load(i32* %flat) { 7 %val = load i32, i32* %flat, align 4 8 ret void 9} 10 11; CHECK: DIVERGENT: %val = load i32, i32 addrspace(5)* %priv, align 4 12define amdgpu_kernel void @private_load(i32 addrspace(5)* %priv) { 13 %val = load i32, i32 addrspace(5)* %priv, align 4 14 ret void 15} 16