From e602b1e35313cbb49e440d96437b63351f2f9895 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Thu, 30 Aug 2018 21:25:10 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/execute/memchr-1.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e9e4b5c..700b86a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-08-30 Martin Sebor + + PR testsuite/87158 + * gcc.c-torture/execute/memchr-1.c: Correct big-endian expectations. + 2018-08-30 Qing Zhao PR 86519 diff --git a/gcc/testsuite/gcc.c-torture/execute/memchr-1.c b/gcc/testsuite/gcc.c-torture/execute/memchr-1.c index ec37632..54fae16 100644 --- a/gcc/testsuite/gcc.c-torture/execute/memchr-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/memchr-1.c @@ -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 } -- 2.7.4