Should fix failures of buildbots that don't build the AMDGPU backend. Change-Id: I01cb84b4b47803b10c5b21ea0353546239860a51 llvm-svn: 341079
16 lines
513 B
LLVM
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
|
|
}
|