public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: <trevor_smigiel@playstation.sony.com>
To: Stefan Schulze Frielinghaus <XXSCHULZ@de.ibm.com>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>,
	andrew_pinski@playstation.sony.com
Subject: Re: [PATCH] SPU: Use FRAME_GROWS_DOWNWARD
Date: Tue, 21 Oct 2008 21:59:00 -0000	[thread overview]
Message-ID: <20081021194256.GQ6018@playstation.sony.com> (raw)
In-Reply-To: <OFD6AEEC33.3670577D-ONC12574E9.004501FF-C12574E9.004CA1AF@de.ibm.com>

Stefan,

In the "stack_protect_set" and "stack_protect_test_si" patterns, the
type attribute should be multi1. This indicates that the first
instruction is in the odd pipeline, which allows slightly better
scheduling of these patterns.

In "stack_protect_test_si", shouldn't the "+r" of the first operand be
"=&r"?  Also, please change "register_operand" to "spu_reg_operand".
Based on the code, it is not necessary now, but it protects us from
possible issues in the future.

I'm a little suspicious of the memory predicates, constraints, and the
hard coded load/store instructions.  How do we know that the memory rtl
will always match the hard coded instructions?

How did you compare the test suite results?  Did you use
contrib/compare_tests?  Or just compare the numbers/statistics printed
at the end?  (Use compare_tests.)

Trevor


* Stefan Schulze Frielinghaus <XXSCHULZ@de.ibm.com> [2008-10-21 07:00]:
> 
> Hi,
> 
> to use the Stack Smashing Protector the frame needs to grow downwards.
> Attached patch accomplishes that for the Cell B.E. SPU architecture.
> 
> Tested against regression suite without any difference in pass/fail
> statistics (except the extra test passes for SSP)..
> 
> OK for mainline?
> (See attached file: spu.patch)
> Mit freundlichen Gruessen / Kind regards
> 
> Stefan Schulze Frielinghaus
> 
> IBM Systems & Technology Group, Systems Software Development
> SW Linux on Cell BE Development & Evaluation
> -------------------------------------------------------------------------------
> 
> IBM Deutschland
> Schoenaicher Str. 220
> 71032 Boeblingen
> Phone: ++49-(0)7031-16-2173
> E-Mail: xxschulz@de.ibm.com
> -------------------------------------------------------------------------------
> 
> IBM Deutschland Research & Development GmbH
> Vorsitzender des Aufsichtsrats: Martin Jetter
> Geschaeftsfuehrung: Herbert Kircher
> Sitz der Gesellschaft: Boeblingen
> Registergericht: Amtsgericht Stuttgart, HRB 243294


  reply	other threads:[~2008-10-21 19:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21 15:07 Stefan Schulze Frielinghaus
2008-10-21 21:59 ` trevor_smigiel [this message]
     [not found]   ` <OF7C80CD55.C050186C-ONC12574EB.00650AC9-C12574EB.00679933@de.ibm.com>
2008-10-23 22:00     ` trevor_smigiel
2008-10-23 22:19       ` Ben Elliston
2008-10-24  8:46         ` Stefan Schulze Frielinghaus
2008-10-24  8:30 Stefan Schulze Frielinghaus

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=20081021194256.GQ6018@playstation.sony.com \
    --to=trevor_smigiel@playstation.sony.com \
    --cc=XXSCHULZ@de.ibm.com \
    --cc=andrew_pinski@playstation.sony.com \
    --cc=gcc-patches@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).