Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Index / pipe-size.cl
blob08b936f1a9b07f7eab3f99082572123dd8997e3d
1 // RUN: %clang_cc1 -x cl -O0 -cl-std=CL2.0 -emit-llvm -triple x86_64-unknown-linux-gnu %s -o - | FileCheck %s --check-prefix=X86
2 // RUN: %clang_cc1 -x cl -O0 -cl-std=CL2.0 -emit-llvm -triple spir-unknown-unknown %s -o - | FileCheck %s --check-prefix=SPIR
3 // RUN: %clang_cc1 -x cl -O0 -cl-std=CL2.0 -emit-llvm -triple spir64-unknown-unknown %s -o - | FileCheck %s --check-prefix=SPIR64
4 // RUN: %clang_cc1 -x cl -O0 -cl-std=CL2.0 -emit-llvm -triple amdgcn-amd-amdhsa %s -o - | FileCheck %s --check-prefix=AMDGCN
5 __kernel void testPipe( pipe int test )
7 int s = sizeof(test);
8 // X86: store ptr %test, ptr %test.addr, align 8
9 // X86: store i32 8, ptr %s, align 4
10 // SPIR: store target("spirv.Pipe", 0) %test, ptr %test.addr, align 4
11 // SPIR: store i32 4, ptr %s, align 4
12 // SPIR64: store target("spirv.Pipe", 0) %test, ptr %test.addr, align 8
13 // SPIR64: store i32 8, ptr %s, align 4
14 // AMDGCN: store ptr addrspace(1) %test, ptr addrspace(5) %test.addr, align 8
15 // AMDGCN: store i32 8, ptr addrspace(5) %s, align 4