2017-03-22 02:55:39 +08:00
|
|
|
// REQUIRES: amdgpu-registered-target
|
|
|
|
// RUN: %clang_cc1 -cl-std=CL2.0 -triple amdgcn-unknown-unknown -S -emit-llvm -o - %s | FileCheck %s
|
|
|
|
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: @One ={{.*}} local_unnamed_addr addrspace(1) global [6442450944 x i8] zeroinitializer, align 1
|
2017-03-22 02:55:39 +08:00
|
|
|
unsigned char One[6442450944];
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: @Two ={{.*}} local_unnamed_addr addrspace(1) global [6442450944 x i32] zeroinitializer, align 4
|
2017-03-22 02:55:39 +08:00
|
|
|
global unsigned int Two[6442450944];
|
2020-03-10 03:25:24 +08:00
|
|
|
|
2017-03-22 02:55:39 +08:00
|
|
|
kernel void large_globals(unsigned int id) {
|
|
|
|
One[id] = id;
|
|
|
|
Two[id + 1] = id + 1;
|
|
|
|
}
|