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
This commit is contained in:
Martin Sebor 2018-08-30 21:25:10 +00:00 committed by Martin Sebor
parent 92b6df436d
commit e602b1e353
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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>
PR 86519

View File

@ -139,9 +139,9 @@ void test_wide (void)
A (memchr (ws1, 0, sizeof ws1) == pws1 + 0);
A (memchr (&ws4[0], 0, nb) == pws4 + 0);
A (memchr (&ws4[1], 0, nb - 1 * nwb) == pws4 + 1 * nwb + 0);
A (memchr (&ws4[2], 0, nb - 2 * nwb) == pws4 + 2 * nwb + 1);
A (memchr (&ws4[3], 0, nb - 3 * nwb) == pws4 + 3 * nwb + 2);
A (memchr (&ws4[1], 0, nb - 1 * nwb) == pws4 + 1 * 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 + 3);
#endif
}