diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-04-18 15:57:46 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-04-18 15:57:46 +0000 |
commit | e372710d30c66e020576a2af6e1e5e815815a65a (patch) | |
tree | e2ef29dd0ea8b2c6d3e60707d62c2ea9f6b080f0 /clang/test | |
parent | ccd3ecb95a466b009ea783745f5ebf34555d3426 (diff) | |
download | bcm5719-llvm-e372710d30c66e020576a2af6e1e5e815815a65a.tar.gz bcm5719-llvm-e372710d30c66e020576a2af6e1e5e815815a65a.zip |
[OPENMP] Code cleanup and code improvements.
llvm-svn: 330270
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/OpenMP/nvptx_target_parallel_reduction_codegen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/OpenMP/nvptx_target_parallel_reduction_codegen.cpp b/clang/test/OpenMP/nvptx_target_parallel_reduction_codegen.cpp index b12801e5252..569a876307a 100644 --- a/clang/test/OpenMP/nvptx_target_parallel_reduction_codegen.cpp +++ b/clang/test/OpenMP/nvptx_target_parallel_reduction_codegen.cpp @@ -24,18 +24,18 @@ tx ftemplate(int n) { float d; double e; - #pragma omp target parallel reduction(+: e) map(tofrom: e) + #pragma omp target parallel reduction(+: e) { e += 5; } - #pragma omp target parallel reduction(^: c) reduction(*: d) map(tofrom: c,d) + #pragma omp target parallel reduction(^: c) reduction(*: d) { c ^= 2; d *= 33; } - #pragma omp target parallel reduction(|: a) reduction(max: b) map(tofrom: a,b) + #pragma omp target parallel reduction(|: a) reduction(max: b) { a |= 1; b = 99 > b ? 99 : b; |