diff options
author | Joey Gouly <joey.gouly@gmail.com> | 2017-07-31 15:50:27 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@gmail.com> | 2017-07-31 15:50:27 +0000 |
commit | 53160cdc45deaa7bb0286442d01c2eb63c770542 (patch) | |
tree | 97901bf15f5868a485406f1b9d28ab3455f858c8 | |
parent | d7b1e5af0a8a7ae571eafb63403a5177fa881f62 (diff) | |
download | bcm5719-llvm-53160cdc45deaa7bb0286442d01c2eb63c770542.tar.gz bcm5719-llvm-53160cdc45deaa7bb0286442d01c2eb63c770542.zip |
[OpenCL] Enable subgroup extension in tests
This fixes the test, so that it can be run on different hosts that may have
different OpenCL extensions enabled.
llvm-svn: 309571
-rw-r--r-- | clang/test/CodeGenOpenCL/pipe_builtin.cl | 2 | ||||
-rw-r--r-- | clang/test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenOpenCL/pipe_builtin.cl b/clang/test/CodeGenOpenCL/pipe_builtin.cl index 2fdbc3fc42c..4b4b4ef97ab 100644 --- a/clang/test/CodeGenOpenCL/pipe_builtin.cl +++ b/clang/test/CodeGenOpenCL/pipe_builtin.cl @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -o - %s | FileCheck %s +// RUN: %clang_cc1 -emit-llvm -cl-ext=+cl_khr_subgroups -O0 -cl-std=CL2.0 -o - %s | FileCheck %s // CHECK: %opencl.pipe_t = type opaque // CHECK: %opencl.reserve_id_t = type opaque diff --git a/clang/test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl b/clang/test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl index 227e60049f2..619b359c7af 100644 --- a/clang/test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl +++ b/clang/test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL2.0 +// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL2.0 -cl-ext=+cl_khr_subgroups #pragma OPENCL EXTENSION cl_khr_subgroups : enable |