Commit e602b1e3 by Martin Sebor Committed by Martin Sebor

PR testsuite/87158 - FAIL gcc.c-torture/execute/memchr-1.c on big endian targets

gcc/testsuite/ChangeLog:
	* gcc.c-torture/execute/memchr-1.c: Correct big-endian expectations.

From-SVN: r264000
parent 92b6df43
2018-08-30 Martin Sebor <msebor@redhat.com>
PR testsuite/87158
* gcc.c-torture/execute/memchr-1.c: Correct big-endian expectations.
2018-08-30 Qing Zhao <qing.zhao@oracle.com> 2018-08-30 Qing Zhao <qing.zhao@oracle.com>
PR 86519 PR 86519
......
...@@ -139,9 +139,9 @@ void test_wide (void) ...@@ -139,9 +139,9 @@ void test_wide (void)
A (memchr (ws1, 0, sizeof ws1) == pws1 + 0); A (memchr (ws1, 0, sizeof ws1) == pws1 + 0);
A (memchr (&ws4[0], 0, nb) == pws4 + 0); A (memchr (&ws4[0], 0, nb) == pws4 + 0);
A (memchr (&ws4[1], 0, nb - 1 * nwb) == pws4 + 1 * nwb + 0); A (memchr (&ws4[1], 0, nb - 1 * nwb) == pws4 + 1 * nwb + 1);
A (memchr (&ws4[2], 0, nb - 2 * nwb) == pws4 + 2 * nwb + 1); A (memchr (&ws4[2], 0, nb - 2 * nwb) == pws4 + 2 * nwb + 2);
A (memchr (&ws4[3], 0, nb - 3 * nwb) == pws4 + 3 * nwb + 2); A (memchr (&ws4[3], 0, nb - 3 * nwb) == pws4 + 3 * nwb + 3);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment