llvm-for-llvmta/tools/clang/test/CodeGenOpenCLCXX/addrspace_cast.cl

8 lines
287 B
Common Lisp
Raw Normal View History

2022-04-25 13:02:35 +02:00
//RUN: %clang_cc1 %s -triple spir -cl-std=clc++ -emit-llvm -O0 -o - | FileCheck %s
//CHECK-LABEL: define{{.*}} spir_func void @_Z3barPU3AS1i
void bar(global int *gl) {
//CHECK: addrspacecast i32 addrspace(1)* %{{[0-9]+}} to i32 addrspace(4)*
int *gen = addrspace_cast<int *>(gl);
}