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