[clang] 9ecbb34 - Fix test cxx-call-kernel.cpp

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 1 14:11:40 PST 2021


Author: Yaxun (Sam) Liu
Date: 2021-03-01T17:10:53-05:00
New Revision: 9ecbb34e1d2dc77e768638b6ecd94d63e451915d

URL: https://github.com/llvm/llvm-project/commit/9ecbb34e1d2dc77e768638b6ecd94d63e451915d
DIFF: https://github.com/llvm/llvm-project/commit/9ecbb34e1d2dc77e768638b6ecd94d63e451915d.diff

LOG: Fix test cxx-call-kernel.cpp

Only test it with x86 since other target may have an ABI
making it difficult to test.

Change-Id: I85423c8bbbbbb8f24cb3ea4cb64a408069b4d61c

Added: 
    

Modified: 
    clang/test/CodeGenCUDA/cxx-call-kernel.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGenCUDA/cxx-call-kernel.cpp b/clang/test/CodeGenCUDA/cxx-call-kernel.cpp
index ae58dcd348ce..66da3e0c9bbf 100644
--- a/clang/test/CodeGenCUDA/cxx-call-kernel.cpp
+++ b/clang/test/CodeGenCUDA/cxx-call-kernel.cpp
@@ -1,5 +1,8 @@
-// RUN: %clang_cc1 -x hip -emit-llvm-bc %s -o %t.hip.bc
-// RUN: %clang_cc1 -mlink-bitcode-file %t.hip.bc -DHIP_PLATFORM -emit-llvm \
+// REQUIRES: x86-registered-target
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu \
+// RUN:   -x hip -emit-llvm-bc %s -o %t.hip.bc
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu \
+// RUN:   -mlink-bitcode-file %t.hip.bc -DHIP_PLATFORM -emit-llvm \
 // RUN:   %s -o - | FileCheck %s
 
 #include "Inputs/cuda.h"


        


More information about the cfe-commits mailing list