llvm-for-llvmta/tools/clang/test/CodeGenOpenCLCXX/addrspace-conversion.cl

8 lines
276 B
Common Lisp
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -cl-std=clc++ -emit-llvm -O0 -o - | FileCheck %s
void bar(__generic volatile unsigned int* ptr)
{
//CHECK: addrspacecast i32 addrspace(4)* %{{.+}} to i32 addrspace(1)*
auto gptr = (__global volatile unsigned int*)ptr;
}