This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH] arm: Generate correct const_ints (PR86640)
- From: Tamar Christina <Tamar dot Christina at arm dot com>
- To: Kyrill Tkachov <kyrylo dot tkachov at foss dot arm dot com>, Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, nd <nd at arm dot com>
- Date: Wed, 15 Aug 2018 08:21:05 +0000
- Subject: RE: [PATCH] arm: Generate correct const_ints (PR86640)
- References: <2ee02a7d9d6cbab11c23563cc9f561cdcbe8b9af.1532955615.git.segher@kernel.crashing.org> <5B5F26E2.3070708@foss.arm.com> <20180730173753.GZ16221@gate.crashing.org> <5B6017B0.2040609@foss.arm.com> <20180731113801.GB16221@gate.crashing.org> <5B604E22.7030109@foss.arm.com>
Hi All,
I'd like to ask for permissions to backport of this patch to GCC 8?
Thanks,
Tamar
> -----Original Message-----
> From: Kyrill Tkachov <kyrylo.tkachov@foss.arm.com>
> Sent: Tuesday, July 31, 2018 12:55
> To: Segher Boessenkool <segher@kernel.crashing.org>
> Cc: gcc-patches@gcc.gnu.org; tnfchris@gcc.gnu.org
> Subject: Re: [PATCH] arm: Generate correct const_ints (PR86640)
>
>
> On 31/07/18 12:38, Segher Boessenkool wrote:
> > On Tue, Jul 31, 2018 at 09:02:56AM +0100, Kyrill Tkachov wrote:
> >> Hi Segher,
> >>
> >> On 30/07/18 18:37, Segher Boessenkool wrote:
> >>> On Mon, Jul 30, 2018 at 03:55:30PM +0100, Kyrill Tkachov wrote:
> >>>> Hi Segher,
> >>>>
> >>>> On 30/07/18 14:14, Segher Boessenkool wrote:
> >>>>> In arm_block_set_aligned_vect 8-bit constants are generated as
> >>>>> zero- extended const_ints, not sign-extended as required. Fix that.
> >>>>>
> >>>>> Tamar tested the patch (see PR); no problems were found. Is this
> >>>>> okay for trunk?
> >>>>>
> >>>> The patch is okay but please add the testcase from the PR to
> >>>> gcc.dg/ or somewhere else generic (it's not arm-specific).
> >>> It only failed with very specific options, which aren't valid on
> >>> every ARM config either I think?
> >>>
> >>> -O3 -mfpu=neon -mfloat-abi=hard -march=armv7-a
> >> This is a fairly common Arm configuration that is tested by many
> >> people by default, so you wouldn't need to add any arm-specific
> >> directives. Just putting it in one of the generic C tests folders
> >> would be enough.
> > Ah ok, so just dg-options -O3 will do?
>
> yes, that should be enough.
>
> Thanks,
> Kyrill
>
> > (As before, I have no reasonable way to test this).
> >
> >
> > Segher