From patchwork Fri Aug 12 03:02:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carrot Wei X-Patchwork-Id: 109756 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 61AA5B708F for ; Fri, 12 Aug 2011 13:02:36 +1000 (EST) Received: (qmail 917 invoked by alias); 12 Aug 2011 03:02:33 -0000 Received: (qmail 908 invoked by uid 22791); 12 Aug 2011 03:02:32 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 12 Aug 2011 03:02:15 +0000 Received: from wpaz13.hot.corp.google.com (wpaz13.hot.corp.google.com [172.24.198.77]) by smtp-out.google.com with ESMTP id p7C32DDe000719; Thu, 11 Aug 2011 20:02:13 -0700 Received: from guozhiwei.sha.corp.google.com (guozhiwei.sha.corp.google.com [172.30.123.48]) by wpaz13.hot.corp.google.com with ESMTP id p7C32BJ5014817; Thu, 11 Aug 2011 20:02:12 -0700 Received: by guozhiwei.sha.corp.google.com (Postfix, from userid 68690) id 98A2B210E2; Fri, 12 Aug 2011 11:02:10 +0800 (CST) To: reply@codereview.appspotmail.com, jingyu@google.com, dougkwan@google.com, gcc-patches@gcc.gnu.org Subject: [google] Backport r177357 from trunk to google/gcc-4_6 (issue4862042) Message-Id: <20110812030210.98A2B210E2@guozhiwei.sha.corp.google.com> Date: Fri, 12 Aug 2011 11:02:10 +0800 (CST) From: carrot@google.com (Guozhi Wei) X-System-Of-Record: true 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 Hi The trunk patch r177357 fixed an arm target test failure, which also affects google/gcc-4_6, OK to port it to google/gcc-4_6? Tested with make check-gcc RUNTESTFLAGS="--target_board=arm-sim/arch=armv7-a arm.exp=vfp-1.c" thanks Carrot 2011-08-12 Guozhi Wei Backport r177357 from trunk. 2011-08-04 Ian Bolton * gcc.target/arm/vfp-1.c: no large negative offsets on Thumb2. --- This patch is available for review at http://codereview.appspot.com/4862042 Index: gcc.target/arm/vfp-1.c =================================================================== --- gcc.target/arm/vfp-1.c (revision 177688) +++ gcc.target/arm/vfp-1.c (working copy) @@ -127,13 +127,13 @@ void test_convert () { void test_ldst (float f[], double d[]) { /* { dg-final { scan-assembler "flds.+ \\\[r0, #1020\\\]" } } */ - /* { dg-final { scan-assembler "flds.+ \\\[r0, #-1020\\\]" } } */ + /* { dg-final { scan-assembler "flds.+ \\\[r\[0-9\], #-1020\\\]" { target { arm32 && { ! arm_thumb2_ok } } } } } */ /* { dg-final { scan-assembler "add.+ r0, #1024" } } */ - /* { dg-final { scan-assembler "fsts.+ \\\[r0, #0\\\]\n" } } */ + /* { dg-final { scan-assembler "fsts.+ \\\[r\[0-9\], #0\\\]\n" } } */ f[256] = f[255] + f[-255]; /* { dg-final { scan-assembler "fldd.+ \\\[r1, #1016\\\]" } } */ - /* { dg-final { scan-assembler "fldd.+ \\\[r1, #-1016\\\]" } } */ + /* { dg-final { scan-assembler "fldd.+ \\\[r\[1-9\], #-1016\\\]" { target { arm32 && { ! arm_thumb2_ok } } } } } */ /* { dg-final { scan-assembler "fstd.+ \\\[r1, #256\\\]" } } */ d[32] = d[127] + d[-127]; }