public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/99626] [10 Regression] gcc.dg/strlenopt-73.c fails for 32 bits
Date: Fri, 19 Mar 2021 23:30:57 +0000	[thread overview]
Message-ID: <bug-99626-4-vicbCWfrsk@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-99626-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99626

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:c9f698dce2ebdd16997a8d41d6698a2180775671

commit r10-9489-gc9f698dce2ebdd16997a8d41d6698a2180775671
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Mar 18 16:11:46 2021 +0100

    testsuite: Fix up strlenopt-73.c on powerpc [PR99626]

    As mentioned in the testcase as well as in the PR, this testcase relies on
    MOVE_MAX being sufficiently large that the memcpy call is folded early into
    load + store.  Some popular targets define MOVE_MAX to 8 or even 16 (e.g.
    x86_64 or some options on s390x), but many other targets define it to just
4
    (e.g. powerpc 32-bit), or even 2.

    The testcase has already one test routine guarded on one particular target
    with MOVE_MAX 16 (but does it incorrectly, __i386__ is only defined on
    32-bit x86 and __SIZEOF_INT128__ is only defined on 64-bit targets), this
    patch fixes that, and guards another test that relies on memcpy (, , 8)
    being folded that way (which therefore needs MOVE_MAX >= 8) on a couple of
    common targets that are known to have such MOVE_MAX.

    2021-03-18  Jakub Jelinek  <jakub@redhat.com>

            PR testsuite/99626
            * gcc.dg/strlenopt-73.c: Ifdef out
test_copy_cond_unequal_length_i64
            on targets other than x86, aarch64, s390 and 64-bit powerpc.  Use
            test_copy_cond_unequal_length_i128 for __x86_64__ with int128
support
            rather than __i386__.

    (cherry picked from commit fff9faa79043aa53d361e7f6e31b2680007a97e2)

  parent reply	other threads:[~2021-03-19 23:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-17 14:18 [Bug testsuite/99626] New: [10/11 regression] " seurer at gcc dot gnu.org
2021-03-17 15:33 ` [Bug testsuite/99626] " rguenth at gcc dot gnu.org
2021-03-17 15:34 ` jakub at gcc dot gnu.org
2021-03-18 15:14 ` cvs-commit at gcc dot gnu.org
2021-03-18 15:22 ` [Bug testsuite/99626] [10 Regression] " jakub at gcc dot gnu.org
2021-03-19 23:30 ` cvs-commit at gcc dot gnu.org [this message]
2021-03-20  8:10 ` jakub at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-99626-4-vicbCWfrsk@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).