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