aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenHIP/hipspv-kernel.cpp
blob: b9a6df12c79688db74cdc28c48db08b55ec999b2 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -triple spirv64 -x hip -emit-llvm -fcuda-is-device \
// RUN:   -o - %s | FileCheck %s

#define __global__ __attribute__((global))

// CHECK: define {{.*}}spir_kernel void @_Z3fooPff(ptr addrspace(1) {{.*}}, float {{.*}})
__global__ void foo(float *a, float b) {
  *a = b;
}