From: Uros Bizjak <ubizjak@gmail.com>
To: Peter Bergner <bergner@vnet.ibm.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
Richard Biener <richard.guenther@gmail.com>,
Jakub Jelinek <jakub@redhat.com>,
Vladimir Makarov <vmakarov@redhat.com>,
Richard Henderson <rth@redhat.com>, Jan Hubicka <hubicka@ucw.cz>
Subject: Re: : [PATCH, reginfo.c, i386.c] Backport fix for PR58139 to 4.8
Date: Thu, 16 Jan 2014 08:11:00 -0000 [thread overview]
Message-ID: <CAFULd4aWP9d8SvyKk5dB4S_D2bfxAmwUwRXjb0sP3TYtrjtidg@mail.gmail.com> (raw)
In-Reply-To: <1389791978.5729.776.camel@otta>
On Wed, Jan 15, 2014 at 2:19 PM, Peter Bergner <bergner@vnet.ibm.com> wrote:
> Oops, forgot to CC the x86 maintainers. Is the i386.c change ok for 4.8?
>
> Peter
>
>
> -------- Forwarded Message --------
> From: Peter Bergner <bergner@vnet.ibm.com>
> To: gcc-patches@gcc.gnu.org <gcc-patches@gcc.gnu.org>
> Cc: Richard Biener <richard.guenther@gmail.com>, Jakub Jelinek <jakub@redhat.com>, Vladimir Makarov <vmakarov@redhat.com>
> Subject: [PATCH, reginfo.c, i386.c] Backport fix for PR58139 to 4.8
> Date: Tue, 14 Jan 2014 11:22:13 -0600
>
> The mainline fix for PR58139 which is a wrong code gen bug was
> submitted here:
>
> http://gcc.gnu.org/ml/gcc-patches/2013-08/msg00910.html
>
> and approved for mainline and 4.8 (after a few weeks) here:
>
> http://gcc.gnu.org/ml/gcc-patches/2013-09/msg00134.html
>
> However, my fix exposed a latent x86 bug, so this patch was never
> committed to 4.8. The latent x86 bug was fixed by Honza and I'd
> like to now ask to be able to backport my fix for PR58139 along
> with Honza's fix to 4.8.
>
> This passed bootstrap and regtesting on powerpc64-linux and
> I bootstrapped this on x86_64 and verified that the ICE seen
> when compiling the test case with only my patch in:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58269#c2
>
> is fixed when we add Honza's patch. Ok for 4.8?
>
> Peter
>
>
> Backport from mainline
> 2013-09-06 Jan Hubicka <jh@suse.cz>
>
> * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
> only when AVX is enabled.
>
> 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
>
> PR target/58139
> * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
> looking for widest mode.
OK for x86, with slight update, as suggested below.
> Index: gcc/config/i386/i386.c
> ===================================================================
> --- gcc/config/i386/i386.c (revision 206582)
> +++ gcc/config/i386/i386.c (working copy)
> @@ -33944,7 +33944,7 @@ ix86_hard_regno_mode_ok (int regno, enum
> are available. OImode move is available only when AVX is
> enabled. */
> return ((TARGET_AVX && mode == OImode)
> - || VALID_AVX256_REG_MODE (mode)
> + || (TARGET_AVX && VALID_AVX256_REG_MODE (mode))
Please use VALID_AVX256_REG_OR_IO_MODE define:
/* OImode move and AVX modes are available only when AVX is enabled. */
return ((TARGET_AVX
&& VALID_AVX256_REG_OR_OI_MODE (mode))
...
Thanks,
Uros.
next prev parent reply other threads:[~2014-01-16 8:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-15 13:20 Peter Bergner
2014-01-16 8:11 ` Uros Bizjak [this message]
2014-01-16 12:40 ` : " Peter Bergner
2014-01-16 12:49 ` Uros Bizjak
2014-01-16 14:58 ` Peter Bergner
-- strict thread matches above, loose matches on Subject: below --
2014-01-14 17:22 Peter Bergner
2014-01-14 19:13 ` Vladimir Makarov
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=CAFULd4aWP9d8SvyKk5dB4S_D2bfxAmwUwRXjb0sP3TYtrjtidg@mail.gmail.com \
--to=ubizjak@gmail.com \
--cc=bergner@vnet.ibm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hubicka@ucw.cz \
--cc=jakub@redhat.com \
--cc=richard.guenther@gmail.com \
--cc=rth@redhat.com \
--cc=vmakarov@redhat.com \
/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).