benchtests: Add more tests for memrchr
commit6b69f98dcd34d63e507cae1d8bfe83ea8d597830
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 4 Jun 2017 16:44:48 +0000 (4 09:44 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 4 Jun 2017 16:45:09 +0000 (4 09:45 -0700)
tree44c0cb8c447fd2775f79d300d0520e115555776b
parentd36c52becb34101df18f410a9a2778def17fc6c8
benchtests: Add more tests for memrchr

bench-memchr.c is shared with bench-memrchr.c.  This patch adds some
tests for positions close to the beginning for memrchr, which are
equivalent to positions close to the end for memchr.

* benchtests/bench-memchr.c (do_test): Print out both length
and position.
(test_main): Also test the position close to the beginning for
memrchr.
ChangeLog
benchtests/bench-memchr.c