17 lines · plain
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=X862// RUN: %clang_cc1 -x cl -O0 -cl-std=CL2.0 -emit-llvm -triple spir-unknown-unknown %s -o - | FileCheck %s --check-prefix=SPIR3// RUN: %clang_cc1 -x cl -O0 -cl-std=CL2.0 -emit-llvm -triple spir64-unknown-unknown %s -o - | FileCheck %s --check-prefix=SPIR644// RUN: %clang_cc1 -x cl -O0 -cl-std=CL2.0 -emit-llvm -triple amdgcn-amd-amdhsa %s -o - | FileCheck %s --check-prefix=AMDGCN5__kernel void testPipe( pipe int test )6{7 int s = sizeof(test);8 // X86: store ptr %test, ptr %test.addr, align 89 // X86: store i32 8, ptr %s, align 410 // SPIR: store target("spirv.Pipe", 0) %test, ptr %test.addr, align 411 // SPIR: store i32 4, ptr %s, align 412 // SPIR64: store target("spirv.Pipe", 0) %test, ptr %test.addr, align 813 // SPIR64: store i32 8, ptr %s, align 414 // AMDGCN: store ptr addrspace(1) %test, ptr %test{{.*}}, align 815 // AMDGCN: store i32 8, ptr addrspace(5) %s{{.*}}, align 416}17