diff options
author | Martin Sebor <msebor@redhat.com> | 2018-08-30 21:25:10 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2018-08-30 15:25:10 -0600 |
commit | e602b1e35313cbb49e440d96437b63351f2f9895 (patch) | |
tree | bb208b502d7fc93b98214f34f2b7d0302eb43268 /gcc/testsuite/gcc.c-torture | |
parent | 92b6df436de3808c5a1cfadbb9d19e5dff82151f (diff) | |
download | gcc-e602b1e35313cbb49e440d96437b63351f2f9895.zip gcc-e602b1e35313cbb49e440d96437b63351f2f9895.tar.gz gcc-e602b1e35313cbb49e440d96437b63351f2f9895.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/memchr-1.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |