Files
clang-p2996/llvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/loads.ll
Nicolai Haehnle 65c026259e Move test/Analysis/DivergenceAnalysis/AMDGPU/loads.ll
Should fix failures of buildbots that don't build the AMDGPU backend.

Change-Id: I01cb84b4b47803b10c5b21ea0353546239860a51
llvm-svn: 341079
2018-08-30 15:24:00 +00:00

16 lines
513 B
LLVM

; RUN: opt -mtriple=amdgcn-- -analyze -divergence %s | FileCheck %s
; Test that we consider loads from flat and private addrspaces to be divergent.
; CHECK: DIVERGENT: %val = load i32, i32* %flat, align 4
define amdgpu_kernel void @flat_load(i32* %flat) {
%val = load i32, i32* %flat, align 4
ret void
}
; CHECK: DIVERGENT: %val = load i32, i32 addrspace(5)* %priv, align 4
define amdgpu_kernel void @private_load(i32 addrspace(5)* %priv) {
%val = load i32, i32 addrspace(5)* %priv, align 4
ret void
}