diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2016-01-20 12:29:47 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-01-20 12:29:47 +0000 |
commit | 9619f04c0e12c24b1282f6d4449de4a9228c3060 (patch) | |
tree | f416f941f9130797a0ca6554668ad9795f3f0208 /clang/test/OpenMP/cancel_codegen.cpp | |
parent | a97595999653b2a2c79a7efd10bfce4fdcf15b44 (diff) | |
download | bcm5719-llvm-9619f04c0e12c24b1282f6d4449de4a9228c3060.tar.gz bcm5719-llvm-9619f04c0e12c24b1282f6d4449de4a9228c3060.zip |
[OPENMP 4.0] Fix for codegen of 'cancel' directive within 'sections' directive.
Allow to emit code for 'cancel' directive within 'sections' directive with single sub-section.
llvm-svn: 258307
Diffstat (limited to 'clang/test/OpenMP/cancel_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/cancel_codegen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/OpenMP/cancel_codegen.cpp b/clang/test/OpenMP/cancel_codegen.cpp index e2dd3673caf..ac72866c880 100644 --- a/clang/test/OpenMP/cancel_codegen.cpp +++ b/clang/test/OpenMP/cancel_codegen.cpp @@ -20,7 +20,7 @@ int main (int argc, char **argv) { #pragma omp cancel sections } // CHECK: call i32 @__kmpc_single( -// CHECK-NOT: @__kmpc_cancel +// CHECK: call i32 @__kmpc_cancel( // CHECK: call void @__kmpc_end_single( // CHECK: call void @__kmpc_barrier(%ident_t* #pragma omp sections @@ -126,7 +126,7 @@ for (int i = 0; i < argc; ++i) { // CHECK: define internal void @{{[^(]+}}(i32* {{[^,]+}}, i32* {{[^,]+}}) // CHECK: call i32 @__kmpc_single( -// CHECK-NOT: @__kmpc_cancel +// CHECK: call i32 @__kmpc_cancel( // CHECK: call void @__kmpc_end_single( // CHECK: ret void |