diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:01 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:01 +0000 |
| commit | 486754660bb926339aefcf012a3f848592babb8b (patch) | |
| tree | ecdbc446c9876f4f120f701c243373cd3cb43db3 /test/CodeGenOpenCL/vla.cl | |
| parent | 55e6d896ad333f07bb3b1ba487df214fc268a4ab (diff) | |
Notes
Diffstat (limited to 'test/CodeGenOpenCL/vla.cl')
| -rw-r--r-- | test/CodeGenOpenCL/vla.cl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/CodeGenOpenCL/vla.cl b/test/CodeGenOpenCL/vla.cl index 5d3599fc3cce..f3d868a7b21b 100644 --- a/test/CodeGenOpenCL/vla.cl +++ b/test/CodeGenOpenCL/vla.cl @@ -1,13 +1,14 @@ // RUN: %clang_cc1 -emit-llvm -triple "spir-unknown-unknown" -O0 -cl-std=CL2.0 -o - %s | FileCheck -check-prefixes=CHECK,SPIR %s -// RUN: %clang_cc1 -emit-llvm -triple amdgcn-amd-amdhsa-opencl -O0 -cl-std=CL2.0 -o - %s | FileCheck -check-prefixes=CHECK,SPIR %s -// RUN: %clang_cc1 -emit-llvm -triple amdgcn-amd-amdhsa-amdgizcl -O0 -cl-std=CL2.0 -o - %s | FileCheck -check-prefixes=CHECK,GIZ %s +// RUN: %clang_cc1 -emit-llvm -triple amdgcn-amd-amdhsa -O0 -cl-std=CL2.0 -o - %s | FileCheck -check-prefixes=CHECK,AMDGCN %s constant int sz0 = 5; -// CHECK: @sz0 = addrspace(2) constant i32 5 +// SPIR: @sz0 = addrspace(2) constant i32 5 +// AMDGCN: @sz0 = addrspace(4) constant i32 5 const global int sz1 = 16; // CHECK: @sz1 = addrspace(1) constant i32 16 const constant int sz2 = 8; -// CHECK: @sz2 = addrspace(2) constant i32 8 +// SPIR: @sz2 = addrspace(2) constant i32 8 +// AMDGCN: @sz2 = addrspace(4) constant i32 8 // CHECK: @testvla.vla2 = internal addrspace(3) global [8 x i16] undef kernel void testvla() @@ -15,10 +16,10 @@ kernel void testvla() int vla0[sz0]; // SPIR: %vla0 = alloca [5 x i32] // SPIR-NOT: %vla0 = alloca [5 x i32]{{.*}}addrspace -// GIZ: %vla0 = alloca [5 x i32]{{.*}}addrspace(5) +// AMDGCN: %vla0 = alloca [5 x i32]{{.*}}addrspace(5) char vla1[sz1]; // SPIR: %vla1 = alloca [16 x i8] // SPIR-NOT: %vla1 = alloca [16 x i8]{{.*}}addrspace -// GIZ: %vla1 = alloca [16 x i8]{{.*}}addrspace(5) +// AMDGCN: %vla1 = alloca [16 x i8]{{.*}}addrspace(5) local short vla2[sz2]; } |
