]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenOpenCL/memcpy.cl
Vendor import of clang trunk r238337:
[FreeBSD/FreeBSD.git] / test / CodeGenOpenCL / memcpy.cl
1 // RUN: %clang_cc1 %s -ffake-address-space-map -emit-llvm -o - | FileCheck %s
2
3 // CHECK-LABEL: @test
4 // CHECK-NOT: addrspacecast
5 // CHECK: call void @llvm.memcpy.p1i8.p3i8
6 kernel void test(global float *g, constant float *c) {
7   __builtin_memcpy(g, c, 32);
8 }