From patchwork Thu Dec 28 16:29:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 853485 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-469863-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="LSAqCnxF"; 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 3z6wDZ0rKjz9s7g for ; Fri, 29 Dec 2017 03:30:01 +1100 (AEDT) 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:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=QELG8+3W1d3OsmiF6UAh/SPtUPoa1lfiqz4KV8sNLdUZ/W7UEq5yU C+nl0a5T0nr6nktdY7vO+0jr2NBIA54BZ0ClxOF3lAjXoHEwzmS1WC2HAv47pi28 ayQgiujaWuhjJe0YtZBhA5rtKKbpdQP/AjrNWjg26nQXVdrLM2C0y8= 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:subject:date:message-id:mime-version:content-type; s= default; bh=ZXruYaDnTqGnGWBmOzr76gBJWpk=; b=LSAqCnxF4t4zqwNHG7/Y ySPDTX7HpxSJz9Kcx2YhnqGIPbDcR4zfYJFkqjQmO+EiQJ0k2pPgZpELSKjSgGbG uVrjcSqs2k8NVX1iB+Sene2ot0VLgKDOIwU4lyDXI19J5ryx22JOmJNso+NuVdqG fg6ZQVsuqHz71efy8FZGp7Y= Received: (qmail 64424 invoked by alias); 28 Dec 2017 16:29:54 -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 64414 invoked by uid 89); 28 Dec 2017 16:29:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy= X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Dec 2017 16:29:51 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3z6wDF3Mdbz1r3BL for ; Thu, 28 Dec 2017 17:29:49 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3z6wDF1rfMz1qsvB for ; Thu, 28 Dec 2017 17:29:49 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id M0Sh3JWxy2nx for ; Thu, 28 Dec 2017 17:29:48 +0100 (CET) X-Auth-Info: auNOFrGtbJ7D1TQDDjw6H491e1Zp48xSq8eH3h5vLeNIR/BeRns4olB/dTL7C0JD Received: from localhost (ppp-188-174-156-248.dynamic.mnet-online.de [188.174.156.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Thu, 28 Dec 2017 17:29:48 +0100 (CET) Received: by localhost (Postfix, from userid 1000) id 16FB62C3170; Thu, 28 Dec 2017 17:29:48 +0100 (CET) From: Andreas Schwab To: gcc-patches@gcc.gnu.org Subject: m68k: clear cc_status in ashrdi3_const1, lshrdi3_const1 X-Yow: Used staples are good with SOY SAUCE! Date: Thu, 28 Dec 2017 17:29:48 +0100 Message-ID: <87373ulssj.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 The ashrdi3_const1 and lshrdi3_const1 insns don't produce a useful CC status. This fixes the 20_util/to_chars/1.cc test in the libstdc++ testsuite. Andreas. * config/m68k/m68k.md (ashrdi3_const1, lshrdi3_const1): Add CC_STATUS_INIT. diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index 628e3889bb..a3a0f197db 100644 --- a/gcc/config/m68k/m68k.md +++ b/gcc/config/m68k/m68k.md @@ -4683,6 +4683,7 @@ "!TARGET_COLDFIRE" { operands[1] = gen_rtx_REG (SImode, REGNO (operands[0]) + 1); + CC_STATUS_INIT; return "asr%.l #1,%0\;roxr%.l #1,%1"; }) @@ -4919,7 +4920,10 @@ (lshiftrt:DI (match_operand:DI 1 "register_operand" "0") (const_int 1)))] "!TARGET_COLDFIRE" - "lsr%.l #1,%0\;roxr%.l #1,%R0") +{ + CC_STATUS_INIT; + return "lsr%.l #1,%0\;roxr%.l #1,%R0"; +}) (define_split [(set (match_operand:DI 0 "register_operand" "")