llvm-project/openmp/runtime/test
Jonathan Peyton 5235a1b603 Fix trip count calculation for parallel loops in runtime
The trip count calculation was incorrect for loops with large bounds. For example,
for(int i=-2,000,000,000; i < 2,000,000,000; i+=50000000), the trip count
calculation had overflow (trying to calculate 2,000,000,000 + 2,000,000,000 with
signed integers) and wasn't giving the right value. This patch fixes this error
in the runtime by using unsigned integers instead. There is still a bug in the
clang compiler component because it warns that there is overflow in the
test case file when there isn't. This error isn't there for the Intel Compiler.
So for now, the test case is designated as XFAIL.

Differential Revision: http://reviews.llvm.org/D19078

llvm-svn: 266677
2016-04-18 21:38:29 +00:00
..
api [OPENMP] Fixed tests for gcc build. 2015-11-16 11:35:57 +00:00
atomic
barrier omp_barrier.c test fixed in order to reliably and faster run on any number of processors 2016-01-25 16:52:10 +00:00
critical
env OMP_WAIT_POLICY changes 2016-04-04 19:38:32 +00:00
flush
lock Exponential back off logic for test-and-set lock 2016-04-14 16:00:37 +00:00
master
ompt [OMPT] Fix parallel_id and task_id in loop_end with schedule static 2016-03-24 12:52:20 +00:00
parallel
tasking Add new OpenMP 4.5 taskloop construct feature 2016-03-02 22:47:51 +00:00
threadprivate test omp_threadprivate_for.c fixed 2015-12-27 18:14:40 +00:00
worksharing Fix trip count calculation for parallel loops in runtime 2016-04-18 21:38:29 +00:00
CMakeLists.txt [OMPT] Make tests require OMPT_BLAME 2016-03-22 08:23:24 +00:00
lit.cfg [OMPT] Fix parallel_id and task_id in loop_end with schedule static 2016-03-24 12:52:20 +00:00
lit.site.cfg.in [OMPT] Make tests require OMPT_BLAME 2016-03-22 08:23:24 +00:00
omp_my_sleep.h
omp_testsuite.h [OPENMP] Add dependency to clang/clang-headers etc. for in-tree build of libomp. 2015-11-02 13:43:32 +00:00