Skip to content

Commit 9ecbb34

Browse files
committed
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
1 parent abbe9e2 commit 9ecbb34

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
// RUN: %clang_cc1 -x hip -emit-llvm-bc %s -o %t.hip.bc
2-
// RUN: %clang_cc1 -mlink-bitcode-file %t.hip.bc -DHIP_PLATFORM -emit-llvm \
1+
// REQUIRES: x86-registered-target
2+
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu \
3+
// RUN: -x hip -emit-llvm-bc %s -o %t.hip.bc
4+
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu \
5+
// RUN: -mlink-bitcode-file %t.hip.bc -DHIP_PLATFORM -emit-llvm \
36
// RUN: %s -o - | FileCheck %s
47

58
#include "Inputs/cuda.h"

0 commit comments

Comments
 (0)