Skip to content

Commit d172286

Browse files
committed
[Clang] Make AMDGPU OpenCL tests require AMD registered target
Summary: These tests likely always failed but was hidden by the expected return value. Simply make them require AMDGPU as a registered target so they don't fail on other machines.
1 parent e524ada commit d172286

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

clang/test/SemaOpenCL/builtins-amdgcn-error-wave32.cl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// RUN: %clang_cc1 -triple amdgcn-- -target-cpu gfx1010 -target-feature +wavefrontsize64 -verify -S -o - %s
55
// RUN: %clang_cc1 -triple amdgcn-- -target-cpu gfx1010 -target-feature -wavefrontsize32 -verify -S -o - %s
66

7+
// REQUIRES: amdgpu-registered-target
8+
79
typedef unsigned int uint;
810

911
void test_ballot_wave32(global uint* out, int a, int b) {

clang/test/SemaOpenCL/builtins-amdgcn-error-wave64.cl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// RUN: %clang_cc1 -triple amdgcn-- -target-cpu gfx1010 -target-feature -wavefrontsize64 -verify -S -o - %s
33
// RUN: %clang_cc1 -triple amdgcn-- -target-cpu gfx1010 -verify -S -o - %s
44

5+
// REQUIRES: amdgpu-registered-target
6+
57
// expected-no-diagnostics
68

79
typedef unsigned long ulong;

0 commit comments

Comments
 (0)