[OpenMP][OMPT] fix reduction test for 32-bit x86
authorprotze@itc.rwth-aachen.de <protze@itc.rwth-aachen.de>
Tue, 4 Feb 2020 11:16:03 +0000 (12:16 +0100)
committerprotze@itc.rwth-aachen.de <protze@itc.rwth-aachen.de>
Tue, 4 Feb 2020 11:19:10 +0000 (12:19 +0100)
commit90e4ebdce55fd3c1f8877f19784a5339b9890f98
tree1ab2ad839bfd41f96bb51305f19c8f5953b37f5f
parent6e01cd6795f83c09639604871cf52f5b124c1858
[OpenMP][OMPT] fix reduction test for 32-bit x86

Fixes [[ https://bugs.llvm.org/show_bug.cgi?id=44733 | TEST 'libomp :: ompt/synchronization/reduction/tree_reduce.c' FAILED on 32-bit x86 ]]

For 32-bit we need at least 3 variables to avoid atomic reduction to be
choosen by runtime function `__kmp_determine_reduction_method`.
This patch adds reduction variables to the testcase.

Reviewers: mgorny, Hahnfeld

Differential Revision: https://reviews.llvm.org/D73850
openmp/runtime/test/ompt/synchronization/reduction/tree_reduce.c