From patchwork Mon Dec 19 21:45:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 132318 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 373F9B6FF5 for ; Tue, 20 Dec 2011 08:46:03 +1100 (EST) Received: (qmail 20171 invoked by alias); 19 Dec 2011 21:45:50 -0000 Received: (qmail 20133 invoked by uid 22791); 19 Dec 2011 21:45:45 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, TW_MG X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Dec 2011 21:45:03 +0000 Received: by wgbdr1 with SMTP id dr1so10150740wgb.8 for ; Mon, 19 Dec 2011 13:45:02 -0800 (PST) Received: by 10.227.57.141 with SMTP id c13mr13639956wbh.25.1324331102201; Mon, 19 Dec 2011 13:45:02 -0800 (PST) Received: from localhost (rsandifo.gotadsl.co.uk. [82.133.89.107]) by mx.google.com with ESMTPS id fq7sm520548wbb.1.2011.12.19.13.45.01 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Dec 2011 13:45:01 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Subject: [committed] Run gcc.target/mips/mult-1.c at -O2 Date: Mon, 19 Dec 2011 21:45:00 +0000 Message-ID: <87liq88cdf.fsf@firetop.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 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 As per the subject. This test now relies on the tree-level widening multiplication optimisation, which only runs at -O2 and above. (It used to happen in expand instead.) Tested on mips-sde-elf and applied. Richard gcc/testsuite/ * gcc.target/mips/mult-1.c: Require -O2. Index: gcc/testsuite/gcc.target/mips/mult-1.c =================================================================== --- gcc/testsuite/gcc.target/mips/mult-1.c 2011-12-17 19:28:33.000000000 +0000 +++ gcc/testsuite/gcc.target/mips/mult-1.c 2011-12-17 20:22:08.000000000 +0000 @@ -1,6 +1,6 @@ /* For SI->DI widening multiplication we should use DINS to combine the two halves. For Octeon use DMUL with explicit widening. */ -/* { dg-options "-O -mgp64 isa_rev>=2 forbid_cpu=octeon.*" } */ +/* { dg-options "-O2 -mgp64 isa_rev>=2 forbid_cpu=octeon.*" } */ /* { dg-final { scan-assembler "\tdins\t" } } */ /* { dg-final { scan-assembler-not "\tdsll\t" } } */ /* { dg-final { scan-assembler-not "\tdsrl\t" } } */