From patchwork Tue Apr 9 18:17:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 1082602 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-499027-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="iaXt2ltj"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="p8psY7kT"; dkim-atps=neutral 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 44dwW50jdWz9sR7 for ; Wed, 10 Apr 2019 04:17:31 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=IV7e5BqAI367U7iINQhU6mWNurAuNS5XYKHvfF/3MKZdDE H/2isw7j3MP3S6uGWQkspxkPJEqYr3eJUUNLvVa21WJXBTPfXXtsUjpgHXggb7sq hazT32Xtpy5OsoC3k2TAV9yuF6xwG2WWJCXSJLk20PxlUQmI3LKN7L0pdFPKg= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=sVJO73cf/QgFzyr+P7BqqbYZOp0=; b=iaXt2ltj+QjY0AMlIG7U BYL3vpmguUFeqdlaLVtEmwIN/zTWyxfWelRTFEICWObE/yeHyw9y49Wf/zFYK9G/ qyGmi+hGTjOG1hogA9dnCCRTyh4H5jlb7+PjpToJ/V8WSESmR0scKlC6BM8IKS9T gjPY4Tk0v/jM+AUFvLWkYV4= Received: (qmail 115830 invoked by alias); 9 Apr 2019 18:17:23 -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 115819 invoked by uid 89); 9 Apr 2019 18:17:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=one's X-HELO: mail-it1-f180.google.com Received: from mail-it1-f180.google.com (HELO mail-it1-f180.google.com) (209.85.166.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 09 Apr 2019 18:17:21 +0000 Received: by mail-it1-f180.google.com with SMTP id s3so6566258itk.1 for ; Tue, 09 Apr 2019 11:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kqFcBnNnowP6bl7+akoc2AXvma8pbS4yUU83okyxHBc=; b=p8psY7kT1z09YLG1q/wMRyXHkR6jRgory4XKSpg26VHFIC3LydJ7zoUaEHXr6uid8x fu/IOMvqrDh62Tu/7xz53H5F0iw9RseWEscAGYcJH55w/XPYPJHm+nfEICVYioUP496n /r/I4k6GynNX/n/8Kk2L9oPDC7a/zRn9JdwGL4AA9gxAAeBLbiPJrw89+V8+4JJZY6I0 LrhTYhZ8GySHfOqz7EMQNfCieSwKrlqSNWosxdhfpuN3IUEXbrgBT5SmNsuvXfPWQSSS teXW7Boxet0yHS8ERPM5jva3rckl8oLXwLcQ9QgOELjj9tWki40V0l05/D2maad0ax81 sp0g== MIME-Version: 1.0 From: Uros Bizjak Date: Tue, 9 Apr 2019 20:17:08 +0200 Message-ID: Subject: [PATCH, testsuite]: Fix FAIL: gcc.target/i386/ifcvt-onecmpl-abs-1.c scan-assembler cltd To: "gcc-patches@gcc.gnu.org" Look for a message of a successful ifcvt in the relevant RTL dump instead of scanning asm dump. 2019-04-09 Uroš Bizjak * gcc.target/i386/ifcvt-onecmpl-abs-1.c (dg-options): Use -O2 -fdump-rtl-ce1. (dg-final): Scan ce1 RTL dump instead of asm dump. Tested on x86_64-linux-gnu {,-m32} and committed to mainline SVN. Uros. Index: gcc.target/i386/ifcvt-onecmpl-abs-1.c =================================================================== --- gcc.target/i386/ifcvt-onecmpl-abs-1.c (revision 270230) +++ gcc.target/i386/ifcvt-onecmpl-abs-1.c (working copy) @@ -1,9 +1,5 @@ /* { dg-do compile } */ -/* This test checks for if-conversion of one's complement - * abs function. */ -/* { dg-options "-O -mtune=generic" } */ -/* { dg-final { scan-assembler "cltd" } } */ -/* { dg-final { scan-assembler "xor" } } */ +/* { dg-options "-O2 -fdump-rtl-ce1" } */ /* Check code generation for one's complement version of abs */ @@ -13,3 +9,5 @@ int onecmplabs(int x) x = ~x; return x; } + +/* { dg-final { scan-rtl-dump "succeeded through noce_try_abs" "ce1" } } */