From patchwork Sun Aug 19 00:46:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 178507 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id C3F682C008E for ; Sun, 19 Aug 2012 10:47:22 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1345942043; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Subject:From:To:Cc:Date:Content-Type:Mime-Version: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=TysXO47QyIwarqbSKWrT exXL5L0=; b=IyADdfwOaIabP+Gg2XRo+LnzWDS0uS9ced/dKMcvF2k+KQ6dNseh my+NJeo4EqLpD7lNwQ+WIyuCH2W1Ddo3fv25oxNqvcXkrhmJA2Kn1rGyfuGnoxzu eENYR+9Q/Y861JVXQBplCs/NZB5HMt8pwDbax9oHoCiZlT/JY5eQAts= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Message-ID:Subject:From:To:Cc:Date:Content-Type:Mime-Version:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=qtQwjcQLfh0w6f0RyWl83Js20s/iahHnmE7KUsZc7hq8tcKRZ7CZcJxAzPuhwK QPrdNiedPu6JN/mMNJhs35OHfZ0Xd6/XNJDimXv0FneK0oq/AiOzzIIMc2OL9fPX g3oMtg2VSx8vuk4oEDZTuarUkR9kOYvLrT1No+CT/xbrQ=; Received: (qmail 19753 invoked by alias); 19 Aug 2012 00:47:18 -0000 Received: (qmail 19743 invoked by uid 22791); 19 Aug 2012 00:47:18 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_NO, RP_MATCHES_RCVD, UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from mailout01.t-online.de (HELO mailout01.t-online.de) (194.25.134.80) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 19 Aug 2012 00:47:04 +0000 Received: from fwd54.aul.t-online.de (fwd54.aul.t-online.de ) by mailout01.t-online.de with smtp id 1T2tfS-0002Ow-19; Sun, 19 Aug 2012 02:47:02 +0200 Received: from [192.168.0.100] (XNho9cZ1whQT0KU7dWzzE+yaIJtK-CLfaz+mSyHkyQbQUqnshDSb6jeX7F2lmO1ZKs@[93.218.180.42]) by fwd54.t-online.de with esmtp id 1T2tfP-14E2Hg0; Sun, 19 Aug 2012 02:46:59 +0200 Message-ID: <1345337217.2268.2.camel@yam-132-YW-E178-FTW> Subject: [wwwdocs] SH 4.8 changes update From: Oleg Endo To: gcc-patches Cc: Gerald Pfeifer Date: Sun, 19 Aug 2012 02:46:57 +0200 Mime-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hello, This is what has been done so far on the SH side for 4.8. I hope it's OK. Cheers, Oleg Index: htdocs/gcc-4.8/changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.8/changes.html,v retrieving revision 1.10 diff -u -r1.10 changes.html --- htdocs/gcc-4.8/changes.html 10 Aug 2012 16:25:46 -0000 1.10 +++ htdocs/gcc-4.8/changes.html 19 Aug 2012 00:41:33 -0000 @@ -100,6 +100,70 @@ options to the assembler. +

SH

+
    +
  • The default alignment settings have been reduced to be less aggresive. + This results in more compact code for optimization levels other than + -Os.
  • + +
  • Improved support for the __atomic built-in functions: +
      +
    • Minor tweaks for code around software atomic sequences that are + enabled by -msoft-atomic.
    • + +
    • A new option -menable-tas will make the compiler + generate the tas.b instruction for the + __atomic_test_and_set built-in function.
    • + +
    • The SH4A instructions movco.l and + movli.l are now supported. They are used to implement some + software atomic sequences that are enabled by -msoft-atomic. + In addition to that, pure movco.l / movli.l + atomic sequences can be enabled with the new option + -mhard-atomic.
    • +
  • + +
  • Added support for the mov.b and mov.w + instructions with displacement addressing.
  • + +
  • Added support for the SH2A instructions movu.b and + movu.w.
  • + +
  • Various improvements to code generated for integer arithmetic.
  • + +
  • Improvements to conditional branches and code that involves the T bit. + A new option -mzdcbranch tells the compiler to favor + zero-displacement branches. This is enabled by default for SH4 and + SH4A.
  • + +
  • The pref instruction will now be emitted by the + __builtin_prefetch built-in function for SH3.
  • + +
  • The fmac instruction will now be emitted by the + fmaf standard and built-in function.
  • + +
  • The -mfused-madd option has been depricated in favor of + the machine-independent -ffp-contract option. Notice that the + fmac instruction will now be generated by default for + expressions like a * b + c. This is due to the compiler + default setting -ffp-contract=fast.
  • + +
  • Added new options -mfsrra and -mfsca to allow + the compiler using the fsrra and fsca + instructions on CPUs other than SH4A.
  • + +
  • Added support for the __builtin_bswap32 built-in function. + It is now expanded as a sequence of swap.b and + swap.w instructions instead of a library function call.
  • + +
  • The behavior of the -mieee option has been fixed and the + negative form -mno-ieee has been added to control the IEEE + conformance of floating point comparisons. By default-mieee is + now enabled and the option -ffinite-math-only implicitly sets + -mno-ieee.
  • + +
+