public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][AArch64] Model CSEL instruction in Cortex-A57 scheduling model
@ 2016-06-06 16:10 Kyrill Tkachov
  2016-06-07  8:22 ` Ramana Radhakrishnan
  0 siblings, 1 reply; 3+ messages in thread
From: Kyrill Tkachov @ 2016-06-06 16:10 UTC (permalink / raw)
  To: GCC Patches; +Cc: Marcus Shawcroft, Richard Earnshaw, James Greenhalgh

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

Hi all,

This small patch adds handling of the CSEL-type instructions to the Cortex-A57 scheduling model.
It is treated the same as simple ALU instructions.

With this patch I didn't see any overall differences in SPEC2006.

Bootstrapped and tested on arm-none-linux-gnueabihf and aarch64-linux-gnu.

Ok for trunk?

The patch is very simple and the csel value isn't used in any arm instructions so I think
just an aarch64 approval for this should be enough.

Thanks,
Kyrill

2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * config/arm/cortex-a57.md (cortex_a57_alu):
     Handle csel type.

[-- Attachment #2: aarch64-csel-ca57.patch --]
[-- Type: text/x-patch, Size: 618 bytes --]

diff --git a/gcc/config/arm/cortex-a57.md b/gcc/config/arm/cortex-a57.md
index 37912db464315a0d70835b81991e8e07a4d9db89..c8cf80f4ba7ed99b46c920c2d0ad3299050ec473 100644
--- a/gcc/config/arm/cortex-a57.md
+++ b/gcc/config/arm/cortex-a57.md
@@ -297,7 +297,7 @@ (define_insn_reservation "cortex_a57_alu" 2
        (eq_attr "type" "alu_imm,alus_imm,logic_imm,logics_imm,\
 			alu_sreg,alus_sreg,logic_reg,logics_reg,\
 			adc_imm,adcs_imm,adc_reg,adcs_reg,\
-			adr,bfm,clz,rbit,rev,alu_dsp_reg,\
+			adr,bfm,clz,csel,rbit,rev,alu_dsp_reg,\
 			rotate_imm,shift_imm,shift_reg,\
 			mov_imm,mov_reg,\
 			mvn_imm,mvn_reg,\

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH][AArch64] Model CSEL instruction in Cortex-A57 scheduling model
  2016-06-06 16:10 [PATCH][AArch64] Model CSEL instruction in Cortex-A57 scheduling model Kyrill Tkachov
@ 2016-06-07  8:22 ` Ramana Radhakrishnan
  2016-06-07  8:28   ` James Greenhalgh
  0 siblings, 1 reply; 3+ messages in thread
From: Ramana Radhakrishnan @ 2016-06-07  8:22 UTC (permalink / raw)
  To: Kyrill Tkachov, GCC Patches
  Cc: Marcus Shawcroft, Richard Earnshaw, James Greenhalgh



On 06/06/16 17:10, Kyrill Tkachov wrote:
> Hi all,
> 
> This small patch adds handling of the CSEL-type instructions to the Cortex-A57 scheduling model.
> It is treated the same as simple ALU instructions.
> 
> With this patch I didn't see any overall differences in SPEC2006.
> 
> Bootstrapped and tested on arm-none-linux-gnueabihf and aarch64-linux-gnu.
> 
> Ok for trunk?
> 
> The patch is very simple and the csel value isn't used in any arm instructions so I think
> just an aarch64 approval for this should be enough.
> 
> Thanks,
> Kyrill
> 
> 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
> 
>     * config/arm/cortex-a57.md (cortex_a57_alu):
>     Handle csel type.


This is ok by me - in these sorts of situations I think we should let the aarch64 approvals be sufficient.

regards
Ramana

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH][AArch64] Model CSEL instruction in Cortex-A57 scheduling model
  2016-06-07  8:22 ` Ramana Radhakrishnan
@ 2016-06-07  8:28   ` James Greenhalgh
  0 siblings, 0 replies; 3+ messages in thread
From: James Greenhalgh @ 2016-06-07  8:28 UTC (permalink / raw)
  To: Ramana Radhakrishnan
  Cc: Kyrill Tkachov, GCC Patches, Marcus Shawcroft, Richard Earnshaw, nd

On Tue, Jun 07, 2016 at 09:22:05AM +0100, Ramana Radhakrishnan wrote:
> 
> 
> On 06/06/16 17:10, Kyrill Tkachov wrote:
> > Hi all,
> > 
> > This small patch adds handling of the CSEL-type instructions to the Cortex-A57 scheduling model.
> > It is treated the same as simple ALU instructions.
> > 
> > With this patch I didn't see any overall differences in SPEC2006.
> > 
> > Bootstrapped and tested on arm-none-linux-gnueabihf and aarch64-linux-gnu.
> > 
> > Ok for trunk?
> > 
> > The patch is very simple and the csel value isn't used in any arm instructions so I think
> > just an aarch64 approval for this should be enough.
> > 
> > Thanks,
> > Kyrill
> > 
 
> 
> This is ok by me - in these sorts of situations I think we should let the
> aarch64 approvals be sufficient.

I agree. I don't think the folder in which the file resides is the most
important thing, it is the intent and risk of the patch that matters.

This patch is OK for AArch64.

Thanks,
James

> > 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
> > 
> >     * config/arm/cortex-a57.md (cortex_a57_alu):
> >     Handle csel type.
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-07  8:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-06 16:10 [PATCH][AArch64] Model CSEL instruction in Cortex-A57 scheduling model Kyrill Tkachov
2016-06-07  8:22 ` Ramana Radhakrishnan
2016-06-07  8:28   ` James Greenhalgh

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).