summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2018-03-29 14:50:00 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2018-03-29 14:50:00 +0000
commitb0eee29c7415dfa1599e4a02018a7e99465d4253 (patch)
tree7dab613ca6655ba0661bf2db0454256955b45023 /clang/test
parent20c5e14ae168edcb397b2a24ba1cf13416cd470d (diff)
downloadbcm5719-llvm-b0eee29c7415dfa1599e4a02018a7e99465d4253.tar.gz
bcm5719-llvm-b0eee29c7415dfa1599e4a02018a7e99465d4253.zip
Disable emitting static extern C aliases for amdgcn target for CUDA
Patch by Greg Rodgers. Revised and lit test added by Yaxun Liu. Differential Revision: https://reviews.llvm.org/D44987 llvm-svn: 328793
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGenCUDA/alias.cu3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGenCUDA/alias.cu b/clang/test/CodeGenCUDA/alias.cu
index 6efff6b92aa..56e595ed363 100644
--- a/clang/test/CodeGenCUDA/alias.cu
+++ b/clang/test/CodeGenCUDA/alias.cu
@@ -1,8 +1,11 @@
// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
+// REQUIRES: amdgpu-registered-target
// RUN: %clang_cc1 -fcuda-is-device -triple nvptx-nvidia-cuda -emit-llvm \
// RUN: -o - %s | FileCheck %s
+// RUN: %clang_cc1 -fcuda-is-device -triple amdgcn -emit-llvm \
+// RUN: -o - %s | FileCheck %s
#include "Inputs/cuda.h"
OpenPOWER on IntegriCloud