This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] gcc/config/c6x/c6x.md: Remove "clobber (match_scratch ...)" in "movmisalign<mode>_store".
- From: Chen Gang <xili_gchen_5257 at hotmail dot com>
- To: Bernd Schmidt <bernds at codesourcery dot com>, Jeff Law <law at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 28 Mar 2015 14:23:58 +0800
- Subject: Re: [PATCH] gcc/config/c6x/c6x.md: Remove "clobber (match_scratch ...)" in "movmisalign<mode>_store".
- Authentication-results: sourceware.org; auth=none
- References: <BLU436-SMTP54E724354B094F919100DB9090 at phx dot gbl> <5515553A dot 7080303 at codesourcery dot com> <BLU436-SMTP209EC20DBDB9A57C5E27366B9F70 at phx dot gbl>
On 3/28/15 09:32, Chen Gang wrote:
> On 3/27/15 21:03, Bernd Schmidt wrote:
>> On 03/27/2015 01:05 AM, Chen Gang wrote:
>>> For misalignment memory access, c6x gcc will cause issue, so need remove
>>> "clobber (match_scratch ...)" which will be symmetric with "movmisalign
>>> <mode>_load", then pass compiling and generate correct assembly code.
>>>
>>
>>> * config/c6x/c6x.md (movmisalign<mode>_store): Remove "clobber
>>> (match_scratch ...)".
>>
>> No, that just will make the compiler confuse loads and stores. I've committed the following to fix it (I thought I'd done so a year ago, but probably it was one of those commit against an out-of-date tree situations and it didn't go through).
>>
>
> OK, thanks. Your patch is OK to me. And I shall try to find another c6x
> patches within this month (2015-03-31).
>
I have reported the related bug 65510, please continue for it, if I need
to continue, please let me know.
Thanks.
--
Chen Gang
Open, share, and attitude like air, water, and life which God blessed