]> granicus.if.org Git - clang/commitdiff
Fix failure of lit test dependent-libs.cu
authorYaxun Liu <Yaxun.Liu@amd.com>
Wed, 29 May 2019 01:34:44 +0000 (01:34 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Wed, 29 May 2019 01:34:44 +0000 (01:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361905 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCUDA/dependent-libs.cu

index 6f59e667d3b1200da37034c7f18d4a41bee197f0..f8bf90715848e98187efd609981b38a1e68288cf 100644 (file)
@@ -1,5 +1,7 @@
-// RUN: %clang_cc1 -emit-llvm -o - -fcuda-is-device -x hip %s | FileCheck --check-prefix=DEV %s
-// RUN: %clang_cc1 -emit-llvm -o - -x hip %s | FileCheck --check-prefix=HOST %s
+// REQUIRES: x86-registered-target
+// REQUIRES: amdgpu-registered-target
+// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -emit-llvm -o - -fcuda-is-device -x hip %s | FileCheck --check-prefix=DEV %s
+// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -o - -x hip %s | FileCheck --check-prefix=HOST %s
 
 // DEV-NOT: llvm.dependent-libraries
 // HOST: llvm.dependent-libraries