From patchwork Wed Mar 30 18:52:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 603562 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qZxbg4f5Sz9sC4 for ; Thu, 31 Mar 2016 05:52:47 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=TvlWikij; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=lSCoJBnYf7U6EQFp4xm7M4L9QEDHBuc1pV2KJz7UeSC1T4eda2 t5lzOJ8zxWumGT/oxX27ydUPR90Vosy+ZN0BdnlkAoNV0KVDdwypRpVk29Rqmr4y DkqqhKJog1MC9wGiy15NmIrOt891omz5Y0G42JrNKoZdKgd9EV+eXYezo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=E7A5CLvTkj2OPoW6cEwzip42Qzs=; b=TvlWikijH9TxQ7YlTsn8 RfFLoAGoR0TzIWOtxPCSxSoBo8usWRwn24yoKD021jPZfpXUmJZjjMtg8YNePt9c 0g0XWiCCEC1cFi7vubXXwgAdlwxm4eCeticFYb0ZGHFoJEuwOYZeUWcdBapJIuDW uZ/l9tUFlvB/ycym3P7DgVU= Received: (qmail 71628 invoked by alias); 30 Mar 2016 18:52:40 -0000 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 Received: (qmail 70997 invoked by uid 89); 30 Mar 2016 18:52:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=hinder X-HELO: smtp.CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE (HELO smtp.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Mar 2016 18:52:29 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 18F18471; Wed, 30 Mar 2016 20:52:27 +0200 (CEST) Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Z0ypgvi7Fxzk; Wed, 30 Mar 2016 20:52:25 +0200 (CEST) Received: from fuego.CeBiTec.Uni-Bielefeld.DE (p5DCE15D1.dip0.t-ipconnect.de [93.206.21.209]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id E8E4F470; Wed, 30 Mar 2016 20:52:24 +0200 (CEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Jeff Law Subject: [testsuite, sparcv9] Fix gcc.dg/ifcvt-4.c on 64-bit SPARC (PR rtl-optimization/68749) Date: Wed, 30 Mar 2016 20:52:18 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes gcc.dg/ifcvt-4.c currently FAILs for 64-bit SPARC: FAIL: gcc.dg/ifcvt-4.c scan-rtl-dump ce1 "2 true changes made" Eric suggested in the PR that Jeff's fix for PR rtl-optimization/69942 to gcc.dg/ifcvt-5.c applies here as well and indeed it does. While I was at it, I removed the superfluous default args to dg-skip-if, which only hinder readibility. I should probably make a pass over the whole testsuite to get rid of this nonesense once stage 1 opens. Tested with the appropriate runtest invocations on sparc-sun-solaris2.12 and i386-pc-solaris2.12. Ok for mainline? Rainer 2016-03-29 Rainer Orth PR rtl-optimization/68749 * gcc.dg/ifcvt-4.c: Use "word_mode" rather than "int" to limit the effects of argument promotions. Remove default args to dg-skip-if. # HG changeset patch # Parent a86884beb324b4a6a88b5f3dac6a6f72b8bbada1 Fix gcc.dg/ifcvt-4.c on 64-bit SPARC (PR rtl-optimization/68749) diff --git a/gcc/testsuite/gcc.dg/ifcvt-4.c b/gcc/testsuite/gcc.dg/ifcvt-4.c --- a/gcc/testsuite/gcc.dg/ifcvt-4.c +++ b/gcc/testsuite/gcc.dg/ifcvt-4.c @@ -1,12 +1,14 @@ /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=3" } */ /* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */ -/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* hppa*64*-*-* visium-*-*" } {"*"} { "" } } */ +/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* hppa*64*-*-* visium-*-*" } } */ -int -foo (int x, int y, int a) +typedef int word __attribute__((mode(word))); + +word +foo (word x, word y, word a) { - int i = x; - int j = y; + word i = x; + word j = y; /* Try to make taking the branch likely. */ __builtin_expect (x > y, 1); if (x > y)