2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
authoriverbin <iverbin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jul 2015 17:19:31 +0000 (17:19 +0000)
committeriverbin <iverbin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jul 2015 17:19:31 +0000 (17:19 +0000)
commit4bb2d1061a9118b2e0954006fd0160afb3c5fdfb
treea74c00aa96cbb32759da71a0fb1850a630b9e8a4
parentd7d63a09f4dde963ab7c3601639814c45754457a
2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>

PR libgomp/66950
* testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
(fib_ref): New function.
(fib): Correct corner cases in the recursion.
(main): Replace the non-simd loop with fib_ref call.
* testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
subroutine.
(fibonacci): Lower the parameter N to 30.  Correct accordingly check
for the last array element value.  Replace the non-simd loop with
fib_ref call.  Remove redundant b_ref array.  Remove the comparison
of the last array element with according Fibonacci sequence element.
(fib): Correct corner cases in the recursion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226080 138bc75d-0d04-0410-961f-82ee72b054a4
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/examples-4/simd-7.c
libgomp/testsuite/libgomp.fortran/examples-4/simd-7.f90