diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-08-15 06:47:53 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-08-15 06:47:53 +0000 |
commit | 93ab6bf534fb6c26563c00f28a8fc5581bb71dfd (patch) | |
tree | 938e985e9673d1b0d289e8ed751943edc097da1d /test/CodeGenOpenCL | |
parent | 233fbe1f56183878167a56be53425a6dd25ba334 (diff) | |
download | clang-93ab6bf534fb6c26563c00f28a8fc5581bb71dfd.tar.gz |
CHECK-LABEL-ify some code gen tests to improve diagnostic experience when tests fail.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenOpenCL')
-rw-r--r-- | test/CodeGenOpenCL/local.cl | 2 | ||||
-rw-r--r-- | test/CodeGenOpenCL/opencl_types.cl | 2 | ||||
-rw-r--r-- | test/CodeGenOpenCL/ptx-calls.cl | 4 | ||||
-rw-r--r-- | test/CodeGenOpenCL/ptx-kernels.cl | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGenOpenCL/local.cl b/test/CodeGenOpenCL/local.cl index b4bd0085df..852fa438f5 100644 --- a/test/CodeGenOpenCL/local.cl +++ b/test/CodeGenOpenCL/local.cl @@ -6,7 +6,7 @@ __kernel void foo(void) { ++i; } -// CHECK: define void @_Z3barPU3AS2i +// CHECK-LABEL: define void @_Z3barPU3AS2i __kernel void __attribute__((__overloadable__)) bar(local int *x) { *x = 5; } diff --git a/test/CodeGenOpenCL/opencl_types.cl b/test/CodeGenOpenCL/opencl_types.cl index b1e558db9b..7e99fc548e 100644 --- a/test/CodeGenOpenCL/opencl_types.cl +++ b/test/CodeGenOpenCL/opencl_types.cl @@ -22,7 +22,7 @@ void fnc3(image3d_t img) {} // CHECK: @fnc3(%opencl.image3d_t* void fnc4smp(sampler_t s) {} -// CHECK: define void @fnc4smp(i32 +// CHECK-LABEL: define void @fnc4smp(i32 kernel void foo(image1d_t img) { sampler_t smp = 5; diff --git a/test/CodeGenOpenCL/ptx-calls.cl b/test/CodeGenOpenCL/ptx-calls.cl index d9904513e5..00f2a0e4c0 100644 --- a/test/CodeGenOpenCL/ptx-calls.cl +++ b/test/CodeGenOpenCL/ptx-calls.cl @@ -2,12 +2,12 @@ void device_function() { } -// CHECK: define void @device_function() +// CHECK-LABEL: define void @device_function() __kernel void kernel_function() { device_function(); } -// CHECK: define void @kernel_function() +// CHECK-LABEL: define void @kernel_function() // CHECK: call void @device_function() // CHECK: !{{[0-9]+}} = metadata !{void ()* @kernel_function, metadata !"kernel", i32 1} diff --git a/test/CodeGenOpenCL/ptx-kernels.cl b/test/CodeGenOpenCL/ptx-kernels.cl index 07648e4015..49d207f023 100644 --- a/test/CodeGenOpenCL/ptx-kernels.cl +++ b/test/CodeGenOpenCL/ptx-kernels.cl @@ -2,10 +2,10 @@ void device_function() { } -// CHECK: define void @device_function() +// CHECK-LABEL: define void @device_function() __kernel void kernel_function() { } -// CHECK: define void @kernel_function() +// CHECK-LABEL: define void @kernel_function() // CHECK: !{{[0-9]+}} = metadata !{void ()* @kernel_function, metadata !"kernel", i32 1} |