From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7176 invoked by alias); 1 Sep 2011 11:53:03 -0000 Received: (qmail 7167 invoked by uid 22791); 1 Sep 2011 11:53:02 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,TW_CP X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 01 Sep 2011 11:52:49 +0000 Received: (qmail 8594 invoked from network); 1 Sep 2011 11:52:48 -0000 Received: from unknown (HELO ?84.152.187.72?) (bernds@127.0.0.2) by mail.codesourcery.com with ESMTPA; 1 Sep 2011 11:52:48 -0000 Message-ID: <4E5F71A1.4050207@codesourcery.com> Date: Thu, 01 Sep 2011 11:53:00 -0000 From: Bernd Schmidt User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110801 Lightning/1.0b3pre Thunderbird/3.1.11 MIME-Version: 1.0 To: GCC Patches Subject: ARM: Emit conditions in push_multi Content-Type: multipart/mixed; boundary="------------050500060308000403060000" Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg00051.txt.bz2 This is a multi-part message in MIME format. --------------050500060308000403060000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 226 Shrink-wrapping tests on ARM had one additional failure, which I could track down to a stmfd instruction being emitted where an stmhifd was intended. The following patch fixes the testcase; full tests running now. Ok? Bernd --------------050500060308000403060000 Content-Type: text/plain; name="stmcond.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="stmcond.diff" Content-length: 771 * config/arm/arm.md (push_multi): Emit predicates. Index: gcc/config/arm/arm.md =================================================================== --- gcc/config/arm/arm.md (revision 178135) +++ gcc/config/arm/arm.md (working copy) @@ -10581,14 +10581,14 @@ (define_insn "*push_multi" In Thumb mode always use push, and the assembler will pick something appropriate. */ if (num_saves == 1 && TARGET_ARM) - output_asm_insn (\"str\\t%1, [%m0, #-4]!\", operands); + output_asm_insn (\"str%?\\t%1, [%m0, #-4]!\", operands); else { int i; char pattern[100]; if (TARGET_ARM) - strcpy (pattern, \"stmfd\\t%m0!, {%1\"); + strcpy (pattern, \"stm%(fd%)\\t%m0!, {%1\"); else strcpy (pattern, \"push\\t{%1\"); --------------050500060308000403060000--