1 // REQUIRES: amdgpu-registered-target
2 // REQUIRES: nvptx-registered-target
4 // RUN: %clang_cc1 -triple nvptx-nvidia-cuda -fcuda-is-device \
5 // RUN: -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s
7 // RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -fcuda-is-device \
8 // RUN: -emit-llvm -disable-llvm-passes -o - -x hip %s | FileCheck %s
10 #include "Inputs/cuda.h"
12 __global__ void kernel1(int a) {}
13 // CHECK: define{{.*}}@_Z7kernel1i{{.*}}#[[ATTR:[0-9]*]]
15 // CHECK: attributes #[[ATTR]] = {{.*}}norecurse